diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 03:05:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 03:05:54 +0000 |
commit | 6bef3d1d2216234454875052220ca0f477a820b4 (patch) | |
tree | 717060345370b781d3d1cde7ab4dd29304a066e8 /util-linux/dmesg.c | |
parent | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff) | |
download | busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.gz busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.tar.bz2 busybox-w32-6bef3d1d2216234454875052220ca0f477a820b4.zip |
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r-- | util-linux/dmesg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 1adb0fc2f..90b327b4c 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -27,7 +27,8 @@ int dmesg_main(int argc, char **argv) | |||
27 | 27 | ||
28 | len = (flags & 2) ? xatoul_range(size, 2, INT_MAX) : 16384; | 28 | len = (flags & 2) ? xatoul_range(size, 2, INT_MAX) : 16384; |
29 | buf = xmalloc(len); | 29 | buf = xmalloc(len); |
30 | if (0 > (len = klogctl(3 + (flags & 1), buf, len))) | 30 | len = klogctl(3 + (flags & 1), buf, len); |
31 | if (len < 0) | ||
31 | bb_perror_msg_and_die("klogctl"); | 32 | bb_perror_msg_and_die("klogctl"); |
32 | 33 | ||
33 | // Skip <#> at the start of lines, and make sure we end with a newline. | 34 | // Skip <#> at the start of lines, and make sure we end with a newline. |