]> Dogcows Code - chaz/tint2/blobdiff - src/battery/battery.c
*fix* allow minimizing omnipresent windows also on desktop 2-n
[chaz/tint2] / src / battery / battery.c
index c88c3a5b57d8ccdc5b4d42df5cc5062aa4487ede..5b98f1303917adc30a63e2dead224febf911f807 100644 (file)
@@ -150,7 +150,6 @@ void init_battery_panel(void *p)
 {
        Panel *panel = (Panel*)p;
        Battery *battery = &panel->battery;
-       FILE *fp;
        int bat_percentage_height, bat_percentage_height_ink, bat_time_height, bat_time_height_ink;
 
        if (!battery_enabled)
@@ -194,7 +193,7 @@ void update_battery() {
        FILE *fp;
        char tmp[25];
        int64_t energy_now = 0, energy_full = 0, current_now = 0;
-       int i, seconds = 0;
+       int seconds = 0;
        int8_t new_percentage = 0;
 
        fp = fopen(path_status, "r");
This page took 0.020791 seconds and 4 git commands to generate.