[Asterisk-cvs] asterisk/stdtime localtime.c,1.10,1.11

kpfleming at lists.digium.com kpfleming at lists.digium.com
Sun Apr 3 18:30:40 CDT 2005


Update of /usr/cvsroot/asterisk/stdtime
In directory mongoose.digium.com:/tmp/cvs-serv28526/stdtime

Modified Files:
	localtime.c 
Log Message:
one more FreeBSD compile warning fix (bug #3938)


Index: localtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/stdtime/localtime.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- localtime.c	14 Dec 2004 23:36:30 -0000	1.10
+++ localtime.c	3 Apr 2005 23:23:36 -0000	1.11
@@ -89,7 +89,9 @@
 
 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 */




More information about the svn-commits mailing list