]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/edit.c
Add const for Solaris' C++ compiler
[bacula/bacula] / bacula / src / lib / edit.c
index 11a2e329247165701563ced33ba34a8d4ff16e79..a55de70e081f680f33dec53b53f58c5d583828dd 100644 (file)
@@ -109,9 +109,9 @@ int duration_to_utime(char *str, utime_t *value)
     *   to months. These "kludges" make it compatible with pre 1.31 
     *  Baculas.
     */
-   static char *mod[] = {"n", "seconds", "months", "minutes", 
-                 "hours", "days", "weeks",   "quarters",   "years", NULL};
-   static int32_t mult[] = {60,   1, 60*60*24*30, 60, 
+   static const char *mod[] = {"n", "seconds", "months", "minutes", 
+                  "hours", "days", "weeks",   "quarters",   "years", NULL};
+   static const int32_t mult[] = {60,  1, 60*60*24*30, 60, 
                  60*60, 60*60*24, 60*60*24*7, 60*60*24*91, 60*60*24*365};
    char mod_str[20];
    int mod_len;