summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2017-04-25 23:55:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-04-26 00:02:51 +0200
commitfb67c977b98d8a7e1fcbed523fe6ce0c06ec1ac8 (patch)
treead84288b878e067011784df46c14bd472166dbb8 /lib/url.c
parente7f8ac19458ba92da78a8a24043922141cc68d4a (diff)
downloadcurl-fb67c977b98d8a7e1fcbed523fe6ce0c06ec1ac8.tar.gz
url: declare get_protocol_family() static
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
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 19388437a..6795a9c8f 100644
--- 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;