]> granicus.if.org Git - curl/commitdiff
url: declare get_protocol_family() static
authorMartin Kepplinger <martink@posteo.de>
Tue, 25 Apr 2017 21:55:57 +0000 (23:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Apr 2017 22:02:51 +0000 (00:02 +0200)
get_protocol_family() is not defined static even though there is a
static local forward declaration. Let's simply make the definition match
it's declaration.

Bug: https://curl.haxx.se/mail/lib-2017-04/0127.html

lib/url.c

index 19388437a176cfe638b3e90275a49a2465afd43f..6795a9c8f451880443f6487bcf97a9d35d932cd5 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -6984,7 +6984,7 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct connectdata *conn)
 * Returns the family as a single bit protocol identifier.
 */
 
-unsigned int get_protocol_family(unsigned int protocol)
+static unsigned int get_protocol_family(unsigned int protocol)
 {
   unsigned int family;