diff options
-rw-r--r-- | simplebl.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -167,7 +167,7 @@ write_sys_file_num(const char *const path, const long val) int main(int argc, char *argv[]) { - long brightness, max_brightness; + long max_brightness; long val; if (!check_group()) @@ -185,8 +185,7 @@ main(int argc, char *argv[]) val = -val; /* FALLTHROUGH */ case '+': - brightness = read_sys_file_num(BRIGHTNESS); - val += brightness; + val += read_sys_file_num(BRIGHTNESS); /* FALLTHROUGH */ case '=': max_brightness = read_sys_file_num(MAX_BRIGHTNESS); |