diff options
author | June McEnroe <june@causal.agency> | 2018-11-12 22:37:15 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-12 22:37:15 -0500 |
commit | 302196272521b66b71f2ab75cc3c9ea335ca5fff (patch) | |
tree | 54970ff525ebfe3053351ab97e41d580afca26e7 /bin/bri.c | |
parent | Add \s sort binding and simplify \h and \a (diff) | |
download | src-302196272521b66b71f2ab75cc3c9ea335ca5fff.tar.gz src-302196272521b66b71f2ab75cc3c9ea335ca5fff.zip |
Use typedefs uint and byte
Diffstat (limited to '')
-rw-r--r-- | bin/bri.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/bri.c b/bin/bri.c index 3e5ebf5e..7a076785 100644 --- a/bin/bri.c +++ b/bin/bri.c @@ -23,6 +23,8 @@ #include <sysexits.h> #include <unistd.h> +typedef unsigned uint; + static const char *Class = "/sys/class/backlight"; int main(int argc, char *argv[]) { @@ -52,7 +54,7 @@ int main(int argc, char *argv[]) { FILE *actual = fopen("actual_brightness", "r"); if (!actual) err(EX_OSFILE, "actual_brightness"); - unsigned value; + uint value; int match = fscanf(actual, "%u", &value); if (match == EOF) err(EX_IOERR, "actual_brightness"); if (match < 1) errx(EX_DATAERR, "actual_brightness"); |