mirror of
https://github.com/moparisthebest/curl
synced 2025-01-02 17:38:00 -05:00
Make param2text() take an int argument, as that is what's being passed in.
This is made to prevent compiler warnings.
This commit is contained in:
parent
e723d2eb7c
commit
cc85f813d1
@ -933,8 +933,9 @@ typedef enum {
|
|||||||
PARAM_LAST
|
PARAM_LAST
|
||||||
} ParameterError;
|
} ParameterError;
|
||||||
|
|
||||||
static const char *param2text(ParameterError error)
|
static const char *param2text(int res)
|
||||||
{
|
{
|
||||||
|
ParameterError error = (ParameterError)res;
|
||||||
switch(error) {
|
switch(error) {
|
||||||
case PARAM_GOT_EXTRA_PARAMETER:
|
case PARAM_GOT_EXTRA_PARAMETER:
|
||||||
return "had unsupported trailing garbage";
|
return "had unsupported trailing garbage";
|
||||||
|
Loading…
Reference in New Issue
Block a user