diff options
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 7fc6088a2..91372d64c 100644 --- a/src/main.c +++ b/src/main.c @@ -933,8 +933,9 @@ typedef enum { PARAM_LAST } ParameterError; -static const char *param2text(ParameterError error) +static const char *param2text(int res) { + ParameterError error = (ParameterError)res; switch(error) { case PARAM_GOT_EXTRA_PARAMETER: return "had unsupported trailing garbage"; |