summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index a172fc1f4..29a1bd752 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -53,7 +53,7 @@ main( int argc, char *argv[] ) {
textdomain(PACKAGE);
progname = argv[0];
- while ((c = getopt( argc, argv, "cn:s:" )) != EOF) {
+ while ((c = getopt( argc, argv, "cn:s:" )) != -1) {
switch (c) {
case 'c':
cmd = 4;