diff options
author | Rob Landley <rob@landley.net> | 2018-11-17 18:25:08 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-17 18:25:08 -0600 |
commit | 503e6362290d56bce0ed71f8164f24e25108bbbc (patch) | |
tree | 06d962fb5a547aa07f387d879cb28ff84fd23b78 /toys/lsb/dmesg.c | |
parent | 7d26f1071d17dc2980280008fbbcd8a6a376d387 (diff) | |
download | toybox-503e6362290d56bce0ed71f8164f24e25108bbbc.tar.gz |
Convert more GLOBALS argument vars to the new single letter code style.
Diffstat (limited to 'toys/lsb/dmesg.c')
-rw-r--r-- | toys/lsb/dmesg.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/toys/lsb/dmesg.c b/toys/lsb/dmesg.c index 30f90e3a..42f642ce 100644 --- a/toys/lsb/dmesg.c +++ b/toys/lsb/dmesg.c @@ -34,8 +34,7 @@ config DMESG #include <sys/klog.h> GLOBALS( - long level; - long size; + long n, s; int use_color; time_t tea; @@ -157,7 +156,7 @@ void dmesg_main(void) klogctl_mode: // Figure out how much data we need, and fetch it. - if (!(size = TT.size)) size = xklogctl(10, 0, 0); + if (!(size = TT.s)) size = xklogctl(10, 0, 0); data = from = xmalloc(size+1); data[size = xklogctl(3+(toys.optflags&FLAG_c), data, size)] = 0; @@ -175,7 +174,7 @@ klogctl_mode: no_output: // Set the log level? - if (toys.optflags & FLAG_n) xklogctl(8, 0, TT.level); + if (toys.optflags & FLAG_n) xklogctl(8, 0, TT.n); // Clear the buffer? if (toys.optflags & (FLAG_C|FLAG_c)) xklogctl(5, 0, 0); |