]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
FreeBSD compile warning (bug #3938)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:59:30 +0000 (05:59 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 05:59:30 +0000 (05:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

stdtime/localtime.c

index 1f6309e3f430913c17a7314939a540a449882737..7c474acf1a0014d277a403683c4e9b8fcc35caaf 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 */