From 1fd6eb626baeee94a65b199cd848019e0e6b81b3 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Tue, 21 Mar 2023 22:46:42 +0000 Subject: [PATCH] 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 Signed-off-by: Andrew Clayton --- src/nxt_main.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include -#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;