From 0bb842a58794f689953c26bd37c1ca8e093d139c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 21 Jul 2022 00:26:29 +0200 Subject: [PATCH] tool_paramhlp: fix "enumerated type mixed with another type" Warning by icc Closes #9179 --- src/tool_paramhlp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index 6f6d7a1c20..9306498e23 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -314,11 +314,11 @@ ParameterError proto2num(struct OperationConfig *config, }; if(!str) - return 1; + return PARAM_OPTION_AMBIGUOUS; buffer = strdup(str); /* because strtok corrupts it */ if(!buffer) - return 1; + return PARAM_NO_MEM; /* Allow strtok() here since this isn't used threaded */ /* !checksrc! disable BANNEDFUNC 2 */ @@ -341,7 +341,7 @@ ParameterError proto2num(struct OperationConfig *config, break; default: /* Includes case of terminating NULL */ Curl_safefree(buffer); - return 1; + return PARAM_BAD_USE; } }