From cc85f813d1a1f80bfa003b12b7e24b8310cb2ccb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Feb 2004 08:31:52 +0000 Subject: [PATCH] Make param2text() take an int argument, as that is what's being passed in. This is made to prevent compiler warnings. --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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";