diff options
author | Mattias Andrée <maandree@kth.se> | 2023-12-05 20:10:48 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-12-05 20:10:48 +0100 |
commit | 6d77b155bcd4725e09837604e6ea86f5f124ba9c (patch) | |
tree | 7cfdf466bb94bbbe3e7929432bc048da5eaa2349 /testutil/strerror-bad.c | |
parent | Second commit (diff) | |
download | libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.gz libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.bz2 libsyscalls-6d77b155bcd4725e09837604e6ea86f5f124ba9c.tar.xz |
Third commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | testutil/strerror-bad.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testutil/strerror-bad.c b/testutil/strerror-bad.c index 23d8836..0436d29 100644 --- a/testutil/strerror-bad.c +++ b/testutil/strerror-bad.c @@ -6,10 +6,17 @@ int -main(void) +main(int argc, char **argv) { size_t count; + (void) argv; + + if (argc != 1) { + fprintf(stderr, "usage error\n"); + return 3; + } + #define X(...) 1 count = (LIBSYSCALLS_LIST_ERRORS(X, +)); #undef X |