From 5f9ad5cc87cb4f5cc987b7c43d2d19a36937e53f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 15 Feb 2015 09:31:01 +0100 Subject: [PATCH] SSLVerifyHost: Make some functions static These functions shouldn't be visible outside of this file. This was caught by -Werror=missing-declarations. Signed-off-by: Uli Schlachter --- src/SSLVerifyHost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SSLVerifyHost.cpp b/src/SSLVerifyHost.cpp index c9bce282..2b5af5ef 100644 --- a/src/SSLVerifyHost.cpp +++ b/src/SSLVerifyHost.cpp @@ -119,7 +119,7 @@ inline char Curl_raw_toupper(char in) * The function is capable of comparing a-z case insensitively even for * non-ascii. */ -int Curl_raw_equal(const char *first, const char *second) +static int Curl_raw_equal(const char *first, const char *second) { while(*first && *second) { if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) @@ -133,7 +133,7 @@ int Curl_raw_equal(const char *first, const char *second) return this as a successful match */ return (Curl_raw_toupper(*first) == Curl_raw_toupper(*second)); } -int Curl_raw_nequal(const char *first, const char *second, size_t max) +static int Curl_raw_nequal(const char *first, const char *second, size_t max) { while(*first && *second && max) { if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) { @@ -234,7 +234,7 @@ static int hostmatch(char *hostname, char *pattern) CURL_HOST_MATCH : CURL_HOST_NOMATCH; } -int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) +static int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) { char *matchp; char *hostp;