From 7dfeb1c1963596edd36193ede5ce8f82c2bf76a5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 22 Feb 2015 15:26:21 +0100 Subject: Get rid of unneccessary volatile Some minor debugging code, mostly commented out --- src/server/globals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/globals.c') diff --git a/src/server/globals.c b/src/server/globals.c index e5f844d..441b2d1 100644 --- a/src/server/globals.c +++ b/src/server/globals.c @@ -19,7 +19,7 @@ int _uplinkTimeout = 1250; int _clientTimeout = 15000; #define SAVE_TO_VAR_STR(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) { if (_ ## kk != NULL) free(_ ## kk); _ ## kk = strdup(value); } } while (0) -#define SAVE_TO_VAR_BOOL(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) _ ## kk = atoi(value) != 0 || strcmp(value, "true") == 0 || strcmp(value, "True") == 0 || strcmp(value, "true") == 0; } while (0) +#define SAVE_TO_VAR_BOOL(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) _ ## kk = atoi(value) != 0 || strcmp(value, "true") == 0 || strcmp(value, "True") == 0 || strcmp(value, "TRUE") == 0; } while (0) #define SAVE_TO_VAR_INT(ss, kk) do { if (strcmp(section, #ss) == 0 && strcmp(key, #kk) == 0) _ ## kk = atoi(value); } while (0) static int ini_handler(void *custom UNUSED, const char* section, const char* key, const char* value) -- cgit v1.2.3-55-g7522