]> sjero.net Git - wget/blobdiff - src/cookies.c
[svn] Declare the pointers to literal strings as `const'.
[wget] / src / cookies.c
index 72ef0a9de3ead3821ee680804fd2271bc1b0326c..98ab423c1f7782598988341349c27bdcbe8f1c37 100644 (file)
@@ -783,7 +783,7 @@ check_domain_match (const char *cookie_domain, const char *host)
       {
        int i;
        int known_toplevel = 0;
-       static char *known_toplevel_domains[] = {
+       static const char *known_toplevel_domains[] = {
          ".com", ".edu", ".net", ".org", ".gov", ".mil", ".int"
        };
        for (i = 0; i < countof (known_toplevel_domains); i++)