aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/tac.c6
-rw-r--r--init/Config.in4
-rw-r--r--networking/netstat.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/tac.c b/coreutils/tac.c
index 6aa0528e0..b1b47302f 100644
--- a/coreutils/tac.c
+++ b/coreutils/tac.c
@@ -28,7 +28,7 @@ int tac_main(int argc, char **argv)
28 char *line; 28 char *line;
29 llist_t *list = NULL; 29 llist_t *list = NULL;
30 int retval = EXIT_SUCCESS; 30 int retval = EXIT_SUCCESS;
31 31
32 argv++; 32 argv++;
33 if (!*argv) 33 if (!*argv)
34 *--argv = (char *)"-"; 34 *--argv = (char *)"-";
@@ -48,7 +48,7 @@ int tac_main(int argc, char **argv)
48 errno = 0; 48 errno = 0;
49 /* FIXME: NUL bytes are mishandled. */ 49 /* FIXME: NUL bytes are mishandled. */
50 while ((line = xmalloc_fgets(f)) != NULL) 50 while ((line = xmalloc_fgets(f)) != NULL)
51 llist_add_to(&list, line); 51 llist_add_to(&list, line);
52 52
53 /* xmalloc_fgets uses getc and returns NULL on error or EOF. */ 53 /* xmalloc_fgets uses getc and returns NULL on error or EOF. */
54 /* It sets errno to ENOENT on EOF, but fopen_or_warn_stdin would */ 54 /* It sets errno to ENOENT on EOF, but fopen_or_warn_stdin would */
@@ -63,6 +63,6 @@ int tac_main(int argc, char **argv)
63 printf("%s", list->data); 63 printf("%s", list->data);
64 list = list->link; 64 list = list->link;
65 } 65 }
66 66
67 return retval; 67 return retval;
68} 68}
diff --git a/init/Config.in b/init/Config.in
index efc8beaf9..4c5610246 100644
--- a/init/Config.in
+++ b/init/Config.in
@@ -32,8 +32,8 @@ config FEATURE_KILL_REMOVED
32 default y 32 default y
33 depends on FEATURE_USE_INITTAB 33 depends on FEATURE_USE_INITTAB
34 help 34 help
35 When respawn entries are removed from inittab and a SIGHUP is 35 When respawn entries are removed from inittab and a SIGHUP is
36 sent to init, this feature will kill the processes that have 36 sent to init, this feature will kill the processes that have
37 been removed. 37 been removed.
38 38
39config FEATURE_KILL_DELAY 39config FEATURE_KILL_DELAY
diff --git a/networking/netstat.c b/networking/netstat.c
index 348abd8ad..399ff9b42 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -353,7 +353,7 @@ static int unix_do_one(int nr, char *line)
353 return 0; /* skip header */ 353 return 0; /* skip header */
354 354
355 /* 2.6.15 may report lines like "... @/tmp/fam-user-^@^@^@^@^@^@^@..." 355 /* 2.6.15 may report lines like "... @/tmp/fam-user-^@^@^@^@^@^@^@..."
356 * Other users report long lines filled by NUL bytes. 356 * Other users report long lines filled by NUL bytes.
357 * (those ^@ are NUL bytes too). We see them as empty lines. */ 357 * (those ^@ are NUL bytes too). We see them as empty lines. */
358 if (!line[0]) 358 if (!line[0])
359 return 0; 359 return 0;