From 03b1578a8ce587981026840cb77e13d334d8428c Mon Sep 17 00:00:00 2001 From: Hummer12007 Date: Sun, 22 Jul 2018 13:04:39 +0300 Subject: Fix read_device return closes #24 --- brightnessctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3