get rid of a compiler warning
authorLee <ler762@users.sourceforge.net>
Sat, 21 Apr 2018 18:46:03 +0000 (14:46 -0400)
committerLee <ler762@users.sourceforge.net>
Sat, 21 Apr 2018 18:46:03 +0000 (14:46 -0400)
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

index c8029d8..dcef878 100644 (file)
@@ -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;