summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/fbatt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/fbatt.c b/bin/fbatt.c
index 5b0180ea..eb736acc 100644
--- a/bin/fbatt.c
+++ b/bin/fbatt.c
@@ -53,18 +53,18 @@ int main() {
         if (entry->d_name[0] == '.') continue;
 
         error = chdir(CLASS);
-        if (error) err(EX_IOERR, "%s", CLASS);
+        if (error) err(EX_OSFILE, "%s", CLASS);
 
         error = chdir(entry->d_name);
-        if (error) err(EX_IOERR, "%s/%s", CLASS, entry->d_name);
+        if (error) err(EX_OSFILE, "%s/%s", CLASS, entry->d_name);
 
         chargeFull = fopen("charge_full", "r");
         chargeNow = fopen("charge_now", "r");
         if (chargeFull && chargeNow) break;
     }
     if (!chargeFull || !chargeNow) {
-        if (errno) err(EX_IOERR, "%s", CLASS);
-        errx(EX_CONFIG, "empty %s", CLASS);
+        if (errno) err(EX_OSFILE, "%s", CLASS);
+        errx(EX_CONFIG, "%s: empty", CLASS);
     }
     closedir(dir);
 
4d1aa75d5d448e9af&follow=1'>Switch to HSV for gfxx palette generationJune McEnroe 2018-03-30Generate default palette in gfxxJune McEnroe 2018-03-30Ignore build and cloneJune McEnroe 2018-03-30Set g:clipboard to pb{copy,paste} alwaysJune McEnroe 2018-03-28Add d-_-b crateJune McEnroe