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>
This commit is contained in:
Andrew Clayton
2023-03-21 22:46:42 +00:00
parent dcdc8e7466
commit 1fd6eb626b

View File

@@ -11,7 +11,8 @@
#include <nxt_auto_config.h> #include <nxt_auto_config.h>
#include <nxt_version.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_port_s nxt_port_t;
typedef struct nxt_task_s nxt_task_t; typedef struct nxt_task_s nxt_task_t;