aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-09 08:31:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-09 08:31:52 +0000
commitcc85f813d1a1f80bfa003b12b7e24b8310cb2ccb (patch)
tree9bd1aa3d7ece5e3cfc0fec453a58586f9f131e1e /src
parente723d2eb7c26dd13ca80bc843ab854ea3c40fe4e (diff)
Make param2text() take an int argument, as that is what's being passed in.
This is made to prevent compiler warnings.
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
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";