]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_paramhlp: make check_protocol return ParameterError
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Jul 2022 21:41:41 +0000 (23:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 23 Jul 2022 11:39:17 +0000 (13:39 +0200)
"enumerated type mixed with another type"

Closes #9179

src/tool_paramhlp.c
src/tool_paramhlp.h

index db0d0fb00f4af6bbc1318028db022f20820978d3..6f6d7a1c20477b573e6d98552c23c1d49831553b 100644 (file)
@@ -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);
index ec44e2df4d552b57e9ebc03192a90bc109ad5faa..6d9451f1d9439087435b5b4c40736bc048d0380b 100644 (file)
@@ -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);