From 788b1308e86320882245159540ef0a489209bcf1 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 29 Sep 2024 22:34:07 -0400 Subject: libostp: session: Use DIAGNOSTIC Signed-off-by: Ian Moffett --- lib/include/libostp/session.h | 2 -- lib/libostp/session.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/include/libostp/session.h b/lib/include/libostp/session.h index 591ac0e..397fa68 100644 --- a/lib/include/libostp/session.h +++ b/lib/include/libostp/session.h @@ -32,8 +32,6 @@ #include -#define LIBOSTP_DEBUG 1 - struct ostp_session { unsigned char *session_key; int sockfd; diff --git a/lib/libostp/session.c b/lib/libostp/session.c index 4bc6fb4..e3f1fd9 100644 --- a/lib/libostp/session.c +++ b/lib/libostp/session.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -41,7 +42,7 @@ #define OSTP_PORT 5352 -#if LIBOSTP_DEBUG +#if DIAGNOSTIC #define LOG(...) printf("libostp: %s", __VA_ARGS__) #else #define LOG(...) (void)0 -- cgit v1.2.3