diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-12-09 16:41:42 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-12-09 16:41:42 +0000 |
commit | afdde3e356bb621f230e4ef556609368647399e6 (patch) | |
tree | 8b59082601203ec2d5125ceb1ad9b989381089a4 /util-linux/dmesg.c | |
parent | 5b5db38a7df20c8196e6a737cb2c76b219e152cc (diff) | |
download | busybox-w32-afdde3e356bb621f230e4ef556609368647399e6.tar.gz busybox-w32-afdde3e356bb621f230e4ef556609368647399e6.tar.bz2 busybox-w32-afdde3e356bb621f230e4ef556609368647399e6.zip |
Some little cleanups from Larry Doolittle
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r-- | util-linux/dmesg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index a32ca79dc..1d33b7641 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c | |||
@@ -86,7 +86,7 @@ int dmesg_main(int argc, char **argv) | |||
86 | 86 | ||
87 | lastc = '\n'; | 87 | lastc = '\n'; |
88 | for (i = 0; i < n; i++) { | 88 | for (i = 0; i < n; i++) { |
89 | if ((i == 0 || buf[i - 1] == '\n') && buf[i] == '<') { | 89 | if (lastc == '\n' && buf[i] == '<') { |
90 | i++; | 90 | i++; |
91 | while (buf[i] >= '0' && buf[i] <= '9') | 91 | while (buf[i] >= '0' && buf[i] <= '9') |
92 | i++; | 92 | i++; |