summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-08-26 17:32:24 (GMT)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-08-27 20:45:36 (GMT)
commiteda9e61107ed34a5f7a566fe6835a48c48aec1d3 (patch)
tree8487ec83bcf739c3c0da34e01ac8ce8ba41fe5e2
parentfc7055f2461fa92bc17d67f02058399dca5736ae (diff)
Fix argument parsing
The switch statement was missing the default case returning ARGP_ERR_UNKNOWN. This patch adds that. * main.c (argp_parser): Add default case.
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 90b3e92..2bfa5c2 100644
--- a/main.c
+++ b/main.c
@@ -120,6 +120,9 @@ argp_parser (int key, char *arg, struct argp_state *state)
case NOSUID_KEY:
/* Ignored for compatibility with Linux' procfs. */
;;
+
+ default:
+ return ARGP_ERR_UNKNOWN;
}
return 0;