changeset 13974:e757e5d04846

[gaim-migrate @ 16532] On my system and in all the documentation I can find, the tm_zone field of the tm struct, if present, is a (char *), not a (const char *). This fixes two (harmless) compilation warnings resulting from the cast to (const char *). committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 20 Jul 2006 18:54:26 +0000
parents 9c0885611b27
children 8b7d6fce88d5
files src/log.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Thu Jul 20 18:32:09 2006 +0000
+++ b/src/log.c	Thu Jul 20 18:54:26 2006 +0000
@@ -107,10 +107,10 @@
 		{
 			char *tmp = g_locale_from_utf8(log->tm->tm_zone, -1, NULL, NULL, NULL);
 			if (tmp != NULL)
-				log->tm->tm_zone = (const char *)tmp;
+				log->tm->tm_zone = tmp;
 			else
 				/* Just shove the UTF-8 bytes in and hope... */
-				log->tm->tm_zone = (const char *)g_strdup(log->tm->tm_zone);
+				log->tm->tm_zone = (char *)g_strdup(log->tm->tm_zone);
 		}
 #endif
 	}