From c79bcf8fae8bb73f7c5a61c387fcbb2db2690536 Mon Sep 17 00:00:00 2001 From: Lee Date: Sat, 21 Apr 2018 14:46:03 -0400 Subject: [PATCH] get rid of a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit urlmatch.c:494:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] jb_err static normalize_http_version(char *http_version) ^~~~~~ swap 'jb_err' and 'static' so that ‘static’ is at beginning of declaration --- urlmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urlmatch.c b/urlmatch.c index c8029d84..dcef8787 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -491,7 +491,7 @@ static int unknown_method(const char *method) * JB_ERR_PARSE if the HTTP version is unsupported * *********************************************************************/ -jb_err static normalize_http_version(char *http_version) +static jb_err normalize_http_version(char *http_version) { unsigned int major_version; unsigned int minor_version; -- 2.39.2