Skip to content

Commit

Permalink
tool_paramhlp: make check_protocol return ParameterError
Browse files Browse the repository at this point in the history
"enumerated type mixed with another type"

Closes #9179
  • Loading branch information
bagder committed Jul 23, 2022
1 parent 6b6fe4f commit 3f533a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tool_paramhlp.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/tool_paramhlp.h
Expand Up @@ -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);

Expand Down

0 comments on commit 3f533a7

Please sign in to comment.