From: Daniel Stenberg Date: Mon, 9 Feb 2004 08:31:52 +0000 (+0000) Subject: Make param2text() take an int argument, as that is what's being passed in. X-Git-Tag: cares-1_1_0~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc85f813d1a1f80bfa003b12b7e24b8310cb2ccb;p=curl Make param2text() take an int argument, as that is what's being passed in. This is made to prevent compiler warnings. --- 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";