From 321cddad8ed1f87e0e844d66ed87e422071de3ec Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Fri, 9 Apr 2010 10:41:01 +0200 Subject: [PATCH] Fix bad boolean handling in config. --- src/core/config.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/core/config.c b/src/core/config.c index c126062..63f37d6 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -45,7 +45,6 @@ LOG_FATAL("Configuration error on line %d: '%s' must be either '1' or '0'", line_count, key); \ return -1; \ } \ - TARGET |= 0x80000000; \ return 0; \ } @@ -86,16 +85,7 @@ } #define DEFAULT_BOOLEAN(KEY, VALUE) \ -{ \ - if (config->KEY & 0x80000000) \ - { \ - config->KEY = config->KEY & 0x000000ff; \ - } \ - else \ - { \ - config->KEY = VALUE; \ - } \ -} + config->KEY = config->KEY & 0x000000ff; #define GET_STR(NAME) CFG_APPLY_STRING ( #NAME , config->NAME ) #define GET_INT(NAME) CFG_APPLY_INTEGER( #NAME , config->NAME )