From: <ev...@us...> - 2006-07-20 18:54:37
|
Revision: 16532 Author: evands Date: 2006-07-20 11:54:26 -0700 (Thu, 20 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16532&view=rev Log Message: ----------- 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 *). Modified Paths: -------------- trunk/src/log.c Modified: trunk/src/log.c =================================================================== --- trunk/src/log.c 2006-07-20 18:32:09 UTC (rev 16531) +++ trunk/src/log.c 2006-07-20 18:54:26 UTC (rev 16532) @@ -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 } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |