summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 9745158a7..aadf1964a 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1444,13 +1444,13 @@ int main(int argc, char **argv)
case 'h': /* --help */
usage(&ctl);
default:
- errtryhelp(EXIT_FAILURE);
+ errtryhelp(EX_USAGE);
}
}
- if (argc > optind) {
+ if (argc -= optind) {
warnx(_("%d too many arguments given"), argc);
- errtryhelp(EXIT_FAILURE);
+ errtryhelp(EX_USAGE);
}
if (!ctl.adj_file_name)