1
0
mirror of git://git.suckless.org/ubase synced 2024-12-24 23:52:34 +00:00

Exit with EXIT_SUCCESS in dmesg.c cases

This commit is contained in:
s-p-k 2013-10-07 22:03:06 +03:00 committed by sin
parent d017808c80
commit 1b31acce48

View File

@ -35,7 +35,7 @@ main(int argc, char *argv[])
case 'C':
if (klogctl(SYSLOG_ACTION_CLEAR, NULL, 0) < 0)
eprintf("klogctl:");
return 0;
return EXIT_SUCCESS;
case 'c':
cflag = 1;
break;
@ -46,7 +46,7 @@ main(int argc, char *argv[])
level = estrtol(EARGF(usage()), 10);
if (klogctl(SYSLOG_ACTION_CONSOLE_LEVEL, NULL, level) < 0)
eprintf("klogctl:");
return 0;
return EXIT_SUCCESS;
default:
usage();
} ARGEND;