diff options
author | Ian Moffett <ian@osmora.org> | 2025-02-25 19:44:10 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-02-25 19:44:37 -0500 |
commit | 7ea9cf4a2d9a8068d9c2503f7c277cf6e9539660 (patch) | |
tree | 0b116c80e23d96d3b3ab7e2ed4d6dbc3f85c51d7 | |
parent | 8661e4386b86d41c45ae3d79de787bc9373df1ac (diff) |
otconfig: Create OSTP_PORT definemain
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | lib/include/otconfig.h | 1 | ||||
-rw-r--r-- | lib/libostp/session.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/include/otconfig.h b/lib/include/otconfig.h index 9487556..96cac38 100644 --- a/lib/include/otconfig.h +++ b/lib/include/otconfig.h @@ -36,6 +36,7 @@ #define ENABLE_MOTD 1 /* Enable message of the day */ #define ARBITRATION_MAX 5 /* Maximum number of arbitration attempts */ #define REQUIRE_USER_AUTH 1 /* 1: true, 0: false */ +#define OSTP_PORT 5352 /* Message of the day */ #if defined(ENABLE_MOTD) diff --git a/lib/libostp/session.c b/lib/libostp/session.c index 26b72bb..3843207 100644 --- a/lib/libostp/session.c +++ b/lib/libostp/session.c @@ -42,8 +42,6 @@ #include <string.h> #include <unistd.h> -#define OSTP_PORT 5352 - #if DIAGNOSTIC #define LOG(fmt, ...) printf(fmt, ##__VA_ARGS__) #else |