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 | 05b0eb217dbec0d94b3faf064dfef2253fff3393 (patch) | |
tree | 83091307cc65f0d3dc5fa9094482ce39c7589128 /bin/bri.c | |
parent | Add \s sort binding and simplify \h and \a (diff) | |
download | src-05b0eb217dbec0d94b3faf064dfef2253fff3393.tar.gz src-05b0eb217dbec0d94b3faf064dfef2253fff3393.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 337d78e9..d2d0740f 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"); |