[empathy: 21/26] empathy-time.c: fix shadow declaration



commit 1f391b975297fc276073fd48406b2b02eed61277
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Oct 22 10:42:27 2009 +0100

    empathy-time.c: fix shadow declaration

 libempathy/empathy-time.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy/empathy-time.c b/libempathy/empathy-time.c
index 19397e7..a39636d 100644
--- a/libempathy/empathy-time.c
+++ b/libempathy/empathy-time.c
@@ -40,18 +40,18 @@ empathy_time_get_current (void)
 time_t
 empathy_time_get_local_time (struct tm *tm)
 {
-	const gchar *timezone;
+	const gchar *tz;
 	time_t       t;
 
-	timezone = g_getenv ("TZ");
+	tz = g_getenv ("TZ");
 	g_setenv ("TZ", "", TRUE);
 
 	tzset ();
 
 	t = mktime (tm);
 
-	if (timezone) {
-		g_setenv ("TZ", timezone, TRUE);
+	if (tz) {
+		g_setenv ("TZ", tz, TRUE);
 	} else {
 		g_unsetenv ("TZ");
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]