aboutsummaryrefslogtreecommitdiff
path: root/util-linux/dmesg.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:13:01 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-03-19 09:13:01 +0000
commitcad5364599eb5062d59e0c397ed638ddd61a8d5d (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /util-linux/dmesg.c
parente01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff)
downloadbusybox-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz
Major coreutils update.
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r--util-linux/dmesg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index aa8eb95c9..fb1639ace 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -42,7 +42,7 @@ int dmesg_main(int argc, char **argv)
int lastc;
int cmd = 3;
- while ((i = getopt(argc, argv, "cn:s:")) != EOF) {
+ while ((i = getopt(argc, argv, "cn:s:")) > 0) {
switch (i) {
case 'c':
cmd = 4;
@@ -58,12 +58,12 @@ int dmesg_main(int argc, char **argv)
bufsize = bb_xgetlarg(optarg, 10, 4096, 512*1024);
break;
default:
- show_usage();
+ bb_show_usage();
}
}
if (optind < argc) {
- show_usage();
+ bb_show_usage();
}
if (cmd == 8) {
@@ -98,5 +98,5 @@ all_done:
#endif
return EXIT_SUCCESS;
die_the_death:
- perror_msg_and_die(NULL);
+ bb_perror_nomsg_and_die();
}