]> sjero.net Git - wget/blobdiff - src/ftp-ls.c
[svn] Declare the pointers to literal strings as `const'.
[wget] / src / ftp-ls.c
index 5c8532294ae348998ab975734391b0167e5b59cd..189bad9325699fa21c6d0ecac951a020d82c505d 100644 (file)
@@ -867,7 +867,7 @@ ftp_index (const char *file, struct url *u, struct fileinfo *f)
        {
          /* #### Should we translate the months?  Or, even better, use
             ISO 8601 dates?  */
-         static char *months[] = {
+         static const char *months[] = {
            "Jan", "Feb", "Mar", "Apr", "May", "Jun",
            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
          };