aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hummer12007 <hilobakho@gmail.com>2018-07-22 13:04:39 +0300
committerGravatar GitHub <noreply@github.com>2018-07-22 13:04:39 +0300
commit03b1578a8ce587981026840cb77e13d334d8428c (patch)
treed289ce97181d564697a2d5d08c8301b1b32f5a98
parent2caa1acfa09118c885b10279cbe64e7487399538 (diff)
Fix read_device return
closes #24
-rw-r--r--brightnessctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/brightnessctl.c b/brightnessctl.c
index 8edea68..eb3ce3c 100644
--- a/brightnessctl.c
+++ b/brightnessctl.c
@@ -399,7 +399,7 @@ dfail:
perror("Error reading device");
error++;
}
- return error;
+ return !error;
}
int read_class(struct device **devs, char *class) {