Commit cc85f813 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Make param2text() take an int argument, as that is what's being passed in.

This is made to prevent compiler warnings.
parent e723d2eb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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";