diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-25 15:55:23 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-25 15:55:23 -0700 |
commit | eb7b8cf31a8378784e97966204559f1b270ac3e9 (patch) | |
tree | feca1b53726b12b4325730801ea28ed1a6fb3e0b /date.c | |
parent | 884ac59256d19db5ee25d976a4f5e60cce51d7d5 (diff) |
Add -Wwrite-strings and fix warnings.
Need to be const-clean when handling string literals.
Diffstat (limited to 'date.c')
-rw-r--r-- | date.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -79,7 +79,7 @@ static unsigned char gmime_datetok_table[256] = { /* hrm, is there a library for this stuff? */ static struct { - char *name; + const char *name; int offset; } tz_offsets [] = { { "UT", 0 }, @@ -99,12 +99,12 @@ static struct { { "Y", 1200 }, }; -static char *tm_months[] = { +static const char *tm_months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; -static char *tm_days[] = { +static const char *tm_days[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; |