]> Dogcows Code - chaz/tint2/commitdiff
add missing battery config CPP guard master
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 27 Mar 2013 18:16:03 +0000 (12:16 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Wed, 27 Mar 2013 18:16:03 +0000 (12:16 -0600)
src/config.c

index b612052e6257fc31712a0a486f77cf1fdc0dcdcd..f08bcaefb60d70aca49cb24425a6c434843e91cc 100644 (file)
@@ -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);
 
This page took 0.024131 seconds and 4 git commands to generate.