[Xfce4-commits] <xfce4-weather-plugin:master> Fix another forgotten struct tm/time_t occurrence.

Harald Judt noreply at xfce.org
Sun Jul 22 20:08:01 CEST 2012


Updating branch refs/heads/master
         to 5abdd3916520fc08ec560c62e3f3902ab0c81291 (commit)
       from 19f20fab99912cc59ec8fddc41cfa157018062d1 (commit)

commit 5abdd3916520fc08ec560c62e3f3902ab0c81291
Author: Harald Judt <h.judt at gmx.at>
Date:   Sun Jul 22 20:05:08 2012 +0200

    Fix another forgotten struct tm/time_t occurrence.

 panel-plugin/weather-summary.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 93a3391..95c6b55 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -242,7 +242,7 @@ create_summary_tab (xfceweather_data *data)
   GtkAdjustment *adj;
   GtkWidget     *weather_channel_icon;
   xml_time      *conditions;
-  struct tm     *start, *end, *point_tm;
+  struct tm     *start_tm, *end_tm, *point_tm;
   char           interval_start[80], interval_end[80], point[80];
 
   view = gtk_text_view_new ();
@@ -287,10 +287,10 @@ create_summary_tab (xfceweather_data *data)
   value = g_strdup_printf (_("\tPoint data applies to:\n\t%s\n"), point);
   APPEND_TEXT_ITEM_REAL (value);
 
-  start = localtime(&conditions->start);
-  strftime (interval_start, 80, "%c", start);
-  end = localtime(&conditions->end);
-  strftime (interval_end, 80, "%c", end);
+  start_tm = localtime(&conditions->start);
+  strftime (interval_start, 80, "%c", start_tm);
+  end_tm = localtime(&conditions->end);
+  strftime (interval_end, 80, "%c", end_tm);
   value = g_strdup_printf (_("\n\tInterval data applies to:\n\tStart:\t%s\n\tEnd:\t%s\n"),
                            interval_start,
                            interval_end);


More information about the Xfce4-commits mailing list