summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/apmd/apmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c
index 0578bee4580..58ad09e088f 100644
--- a/usr.sbin/apmd/apmd.c
+++ b/usr.sbin/apmd/apmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmd.c,v 1.48 2007/07/18 13:34:23 mcbride Exp $ */
+/* $OpenBSD: apmd.c,v 1.49 2007/11/24 14:58:44 deraadt Exp $ */
/*
* Copyright (c) 1995, 1996 John T. Kohl
@@ -569,6 +569,9 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
+ if (argc != 0)
+ usage();
+
if (doperf == PERF_NONE)
doperf = PERF_MANUAL;