From 503e6362290d56bce0ed71f8164f24e25108bbbc Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 Nov 2018 18:25:08 -0600 Subject: Convert more GLOBALS argument vars to the new single letter code style. --- toys/lsb/dmesg.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'toys/lsb/dmesg.c') 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 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); -- cgit v1.2.3