Skip to content

Commit

Permalink
smaxWrite: consolidate defines
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 11, 2025
1 parent 1f08fd7 commit a8424af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/smaxValue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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);
}
Expand Down

0 comments on commit a8424af

Please sign in to comment.