aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-09 16:41:42 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-09 16:41:42 +0000
commit7bd65c7de76d6aaddb5054c4cede258229d23e1e (patch)
tree8b59082601203ec2d5125ceb1ad9b989381089a4
parent5a44cbbfe0f8cb43349169fcf4dd3a8d20f1c41a (diff)
downloadbusybox-w32-7bd65c7de76d6aaddb5054c4cede258229d23e1e.tar.gz
busybox-w32-7bd65c7de76d6aaddb5054c4cede258229d23e1e.tar.bz2
busybox-w32-7bd65c7de76d6aaddb5054c4cede258229d23e1e.zip
Some little cleanups from Larry Doolittle
git-svn-id: svn://busybox.net/trunk/busybox@1410 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--dmesg.c2
-rw-r--r--logger.c2
-rw-r--r--sysklogd/logger.c2
-rw-r--r--util-linux/dmesg.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/dmesg.c b/dmesg.c
index a32ca79dc..1d33b7641 100644
--- a/dmesg.c
+++ b/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++;
diff --git a/logger.c b/logger.c
index 1c454e5af..669a2d601 100644
--- a/logger.c
+++ b/logger.c
@@ -35,7 +35,7 @@
35 35
36#else 36#else
37/* We have to do this since the header file defines static 37/* We have to do this since the header file defines static
38 * structues. Argh.... bad libc, bad, bad... 38 * structures. Argh.... bad libc, bad, bad...
39 */ 39 */
40#include <sys/syslog.h> 40#include <sys/syslog.h>
41typedef struct _code { 41typedef struct _code {
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 1c454e5af..669a2d601 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -35,7 +35,7 @@
35 35
36#else 36#else
37/* We have to do this since the header file defines static 37/* We have to do this since the header file defines static
38 * structues. Argh.... bad libc, bad, bad... 38 * structures. Argh.... bad libc, bad, bad...
39 */ 39 */
40#include <sys/syslog.h> 40#include <sys/syslog.h>
41typedef struct _code { 41typedef struct _code {
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++;