mirror of
https://github.com/curl/curl.git
synced 2025-09-18 10:02:45 +03:00
tool_paramhlp: make check_protocol return ParameterError
"enumerated type mixed with another type" Closes #9179
This commit is contained in:
parent
6b6fe4fec5
commit
3f533a7977
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user