]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows: fix getopt.c build error with MinGW
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Sep 2013 00:58:53 +0000 (18:58 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 11 Sep 2013 00:58:53 +0000 (18:58 -0600)
Resolve warning 'initialization discards const qualifieer from pointer'.

  This is an iCelero project.

lib/getopt.c

index e95fbc94c42903bd34dd73cdec401e58acd4576b..a4083f5fbe18342a60308e52a03007603d7661fd 100644 (file)
@@ -45,7 +45,7 @@ char *optarg;                 /* argument associated with option */
 
 #define        BADCH   (int)'?'
 #define        BADARG  (int)':'
-#define        EMSG    ""
+#define        EMSG    (char*)""
 
 /*
  * getopt --