summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-21 22:46:42 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-04-25 13:59:25 +0100
commit1fd6eb626baeee94a65b199cd848019e0e6b81b3 (patch)
tree3ae56f47b9480418088753671a96940d8dfea80e
parentdcdc8e7466dcae2444166134114881a30c124bf2 (diff)
downloadunit-1fd6eb626baeee94a65b199cd848019e0e6b81b3.tar.gz
unit-1fd6eb626baeee94a65b199cd848019e0e6b81b3.tar.bz2
Decouple "Unit" from NXT_SERVER.
Split out the "Unit" name from the NXT_SERVER #define into its own NXT_NAME #define, then make NXT_SERVER a combination of that and NXT_VERSION. This is required for a subsequent commit where we may want the server name on its own. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--src/nxt_main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_main.h b/src/nxt_main.h
index 75e1724e..a7e0c283 100644
--- a/src/nxt_main.h
+++ b/src/nxt_main.h
@@ -11,7 +11,8 @@
#include <nxt_auto_config.h>
#include <nxt_version.h>
-#define NXT_SERVER "Unit/" NXT_VERSION
+#define NXT_NAME "Unit"
+#define NXT_SERVER NXT_NAME "/" NXT_VERSION
typedef struct nxt_port_s nxt_port_t;
typedef struct nxt_task_s nxt_task_t;