From 3f533a7977ee1bbf0bad5abe659dae6009299b72 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Jul 2022 23:41:41 +0200 Subject: [PATCH] tool_paramhlp: make check_protocol return ParameterError "enumerated type mixed with another type" Closes #9179 --- src/tool_paramhlp.c | 2 +- src/tool_paramhlp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index db0d0fb00f4af6..6f6d7a1c20477b 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 ec44e2df4d552b..6d9451f1d94390 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);