Code

Make return value of string_date const
authorJonas Fonseca <fonseca@diku.dk>
Sun, 13 Dec 2009 20:59:45 +0000 (15:59 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 13 Dec 2009 21:00:07 +0000 (16:00 -0500)
tig.c

diff --git a/tig.c b/tig.c
index 3f4a6f6d57f9467f01dbe4d371c009545f6dd871..fc7e8c35e9644b2ccc765564d7211cf15c93c67b 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -401,7 +401,7 @@ static const struct enum_map date_map[] = {
 #undef DATE_
 };
 
-static char *
+static const char *
 string_date(const time_t *time, enum date date)
 {
        static char buf[DATE_COLS + 1];