]> granicus.if.org Git - curl/commitdiff
Make param2text() take an int argument, as that is what's being passed in.
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Feb 2004 08:31:52 +0000 (08:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Feb 2004 08:31:52 +0000 (08:31 +0000)
This is made to prevent compiler warnings.

src/main.c

index 7fc6088a235822f0942602812b04aaae3cec26e8..91372d64c3fec6003182b8a1b38bcd83d28e00fa 100644 (file)
@@ -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";