one more FreeBSD compile warning fix (bug #3938)
authorKevin P. Fleming <kpfleming@digium.com>
Sun, 3 Apr 2005 23:23:36 +0000 (23:23 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sun, 3 Apr 2005 23:23:36 +0000 (23:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5374 65c4cc65-6c06-0410-ace0-fbb531ad65f3

stdtime/localtime.c

index 2f9d412..7adaabf 100755 (executable)
@@ -89,7 +89,9 @@ static const char     elsieid[] = "@(#)localtime.c    7.57";
 
 static char            wildabbr[] = "WILDABBR";
 
-static const char      gmt[] = "GMT";
+/* FreeBSD defines 'zone' in 'struct tm' as non-const, so don't declare this
+   string as const. */
+static char            gmt[] = "GMT";
 
 struct ttinfo {                                /* time type information */
        long            tt_gmtoff;      /* GMT offset in seconds */