Some little cleanups from Larry Doolittle

This commit is contained in:
Eric Andersen 2000-12-09 16:41:42 +00:00
parent 5b5db38a7d
commit afdde3e356
4 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ int dmesg_main(int argc, char **argv)
lastc = '\n';
for (i = 0; i < n; i++) {
if ((i == 0 || buf[i - 1] == '\n') && buf[i] == '<') {
if (lastc == '\n' && buf[i] == '<') {
i++;
while (buf[i] >= '0' && buf[i] <= '9')
i++;

View File

@ -35,7 +35,7 @@
#else
/* We have to do this since the header file defines static
* structues. Argh.... bad libc, bad, bad...
* structures. Argh.... bad libc, bad, bad...
*/
#include <sys/syslog.h>
typedef struct _code {

View File

@ -35,7 +35,7 @@
#else
/* We have to do this since the header file defines static
* structues. Argh.... bad libc, bad, bad...
* structures. Argh.... bad libc, bad, bad...
*/
#include <sys/syslog.h>
typedef struct _code {

View File

@ -86,7 +86,7 @@ int dmesg_main(int argc, char **argv)
lastc = '\n';
for (i = 0; i < n; i++) {
if ((i == 0 || buf[i - 1] == '\n') && buf[i] == '<') {
if (lastc == '\n' && buf[i] == '<') {
i++;
while (buf[i] >= '0' && buf[i] <= '9')
i++;