From: Charles McGarvey Date: Wed, 27 Mar 2013 18:16:03 +0000 (-0600) Subject: add missing battery config CPP guard X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;ds=sidebyside;p=chaz%2Ftint2 add missing battery config CPP guard --- diff --git a/src/config.c b/src/config.c index b612052..f08bcae 100644 --- a/src/config.c +++ b/src/config.c @@ -695,6 +695,7 @@ void add_entry (char *key, char *value) } } } +#ifdef ENABLE_BATTERY else if (strcmp(key, "battery") == 0) { if (new_config_file == 0) { battery_enabled = atoi(value); @@ -709,6 +710,7 @@ void add_entry (char *key, char *value) } } } +#endif else fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);