tool_paramhlp: make check_protocol return ParameterError

"enumerated type mixed with another type"

Closes #9179
This commit is contained in:
Daniel Stenberg 2022-07-20 23:41:41 +02:00
parent 6b6fe4fec5
commit 3f533a7977
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ ParameterError proto2num(struct OperationConfig *config,
* @return PARAM_LIBCURL_UNSUPPORTED_PROTOCOL protocol not supported * @return PARAM_LIBCURL_UNSUPPORTED_PROTOCOL protocol not supported
* @return PARAM_REQUIRES_PARAMETER missing parameter * @return PARAM_REQUIRES_PARAMETER missing parameter
*/ */
int check_protocol(const char *str) ParameterError check_protocol(const char *str)
{ {
const char * const *pp; const char * const *pp;
const curl_version_info_data *curlinfo = curl_version_info(CURLVERSION_NOW); const curl_version_info_data *curlinfo = curl_version_info(CURLVERSION_NOW);

View File

@ -41,7 +41,7 @@ ParameterError proto2num(struct OperationConfig *config,
unsigned int val, char **obuf, unsigned int val, char **obuf,
const char *str); const char *str);
int check_protocol(const char *str); ParameterError check_protocol(const char *str);
ParameterError str2offset(curl_off_t *val, const char *str); ParameterError str2offset(curl_off_t *val, const char *str);