From a8424af697915f5923bb3d9ecba8f05d98818990 Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Sat, 11 Jan 2025 13:36:33 +0100 Subject: [PATCH] smaxWrite: consolidate defines --- src/smaxValue.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/smaxValue.c b/src/smaxValue.c index cd5affb..f301229 100644 --- a/src/smaxValue.c +++ b/src/smaxValue.c @@ -18,6 +18,9 @@ #include "smax.h" /// \cond PRIVATE +#define NO_SUCH_KEY 1 +#define NOT_ENOUGH_TOKENS 2 + #define RED "\x1B[31m" #define GRN "\x1B[32m" #define YEL "\x1B[33m" @@ -36,10 +39,6 @@ static char *host = SMAX_DEFAULT_HOSTNAME; static int printValue(const char *group, const char *key); static int listEntries(const char *group, const char *key); -#define NO_SUCH_KEY 1 -#define NOT_ENOUGH_TOKENS 2 - - static void printVersion(const char *name) { printf("%s %s\n", name, SMAX_VERSION_STRING); }