From: Daniel Stenberg Date: Wed, 20 Jul 2022 21:41:41 +0000 (+0200) Subject: tool_paramhlp: make check_protocol return ParameterError X-Git-Tag: curl-7_85_0~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f533a7977ee1bbf0bad5abe659dae6009299b72;p=thirdparty%2Fcurl.git tool_paramhlp: make check_protocol return ParameterError "enumerated type mixed with another type" Closes #9179 --- diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index db0d0fb00f..6f6d7a1c20 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -395,7 +395,7 @@ ParameterError proto2num(struct OperationConfig *config, * @return PARAM_LIBCURL_UNSUPPORTED_PROTOCOL protocol not supported * @return PARAM_REQUIRES_PARAMETER missing parameter */ -int check_protocol(const char *str) +ParameterError check_protocol(const char *str) { const char * const *pp; const curl_version_info_data *curlinfo = curl_version_info(CURLVERSION_NOW); diff --git a/src/tool_paramhlp.h b/src/tool_paramhlp.h index ec44e2df4d..6d9451f1d9 100644 --- a/src/tool_paramhlp.h +++ b/src/tool_paramhlp.h @@ -41,7 +41,7 @@ ParameterError proto2num(struct OperationConfig *config, unsigned int val, char **obuf, const char *str); -int check_protocol(const char *str); +ParameterError check_protocol(const char *str); ParameterError str2offset(curl_off_t *val, const char *str);