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";