]> git.notmuchmail.org Git - notmuch/blobdiff - date.c
Add public notmuch_thread_get_subject
[notmuch] / date.c
diff --git a/date.c b/date.c
index 3f337c962247f71c37ae217bc3fd18be959bbd5d..44f5a99acd8bb509b8058c20c0b482d93ab61c2b 100644 (file)
--- a/date.c
+++ b/date.c
@@ -27,6 +27,8 @@
 
 #include <time.h>
 
+#include <glib.h> /* For g_ascii_strncasecmp only. */
+
 #ifndef FALSE
 #define FALSE 0
 #endif
@@ -77,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 },
@@ -97,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"
 };