diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-08-26 19:32:24 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-27 22:45:36 +0200 |
commit | eda9e61107ed34a5f7a566fe6835a48c48aec1d3 (patch) | |
tree | 8487ec83bcf739c3c0da34e01ac8ce8ba41fe5e2 | |
parent | fc7055f2461fa92bc17d67f02058399dca5736ae (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |