aboutsummaryrefslogtreecommitdiff
path: root/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmesg.c')
-rw-r--r--dmesg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dmesg.c b/dmesg.c
index 88b5d1393..a32ca79dc 100644
--- a/dmesg.c
+++ b/dmesg.c
@@ -73,7 +73,7 @@ int dmesg_main(int argc, char **argv)
73 if (n < 0) { 73 if (n < 0) {
74 goto klogctl_error; 74 goto klogctl_error;
75 } 75 }
76 exit(TRUE); 76 return EXIT_SUCCESS;
77 } 77 }
78 78
79 if (bufsize < 4096) 79 if (bufsize < 4096)
@@ -98,11 +98,11 @@ int dmesg_main(int argc, char **argv)
98 } 98 }
99 if (lastc != '\n') 99 if (lastc != '\n')
100 putchar('\n'); 100 putchar('\n');
101 exit(TRUE); 101 return EXIT_SUCCESS;
102 end: 102 end:
103 usage(dmesg_usage); 103 usage(dmesg_usage);
104 exit(FALSE); 104 return EXIT_FAILURE;
105 klogctl_error: 105 klogctl_error:
106 perror("klogctl"); 106 perror("klogctl");
107 return(FALSE); 107 return EXIT_FAILURE;
108} 108}