summaryrefslogtreecommitdiffstats
path: root/testutil/strerror-all.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testutil/strerror-all.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/testutil/strerror-all.c b/testutil/strerror-all.c
index b875392..75a3d77 100644
--- a/testutil/strerror-all.c
+++ b/testutil/strerror-all.c
@@ -6,10 +6,17 @@
int
-main(void)
+main(int argc, char **argv)
{
size_t i, count;
+ (void) argv;
+
+ if (argc != 1) {
+ fprintf(stderr, "usage error\n");
+ return 3;
+ }
+
#define X(...) 1
count = (LIBSYSCALLS_LIST_ERRORS(X, +));
#undef X