[Xfce4-commits] <xfce4-weather-plugin:master> Add const qualifiers where appropriate: weather-parsers

Harald Judt noreply at xfce.org
Thu Aug 2 23:08:06 CEST 2012


Updating branch refs/heads/master
         to 3e6c49041cd5cb24e509cc2c3e0dc3cb7aab0430 (commit)
       from ce079c85758d1d357785c464522221fe5e6cd00b (commit)

commit 3e6c49041cd5cb24e509cc2c3e0dc3cb7aab0430
Author: Harald Judt <h.judt at gmx.at>
Date:   Thu Aug 2 22:56:35 2012 +0200

    Add const qualifiers where appropriate: weather-parsers

 panel-plugin/weather-parsers.c |    6 +++---
 panel-plugin/weather-parsers.h |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index fa21a9f..5a70161 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -58,8 +58,8 @@ my_timegm(struct tm *tm)
 
 xml_time *
 get_timeslice(xml_weather *data,
-              time_t start_t,
-              time_t end_t)
+              const time_t start_t,
+              const time_t end_t)
 {
     guint i;
 
@@ -81,7 +81,7 @@ get_timeslice(xml_weather *data,
 
 
 static time_t
-parse_xml_timestring(gchar *ts,
+parse_xml_timestring(const gchar *ts,
                      gchar *format) {
     time_t t;
     struct tm tm;
diff --git a/panel-plugin/weather-parsers.h b/panel-plugin/weather-parsers.h
index 7e67d4e..03bfb94 100644
--- a/panel-plugin/weather-parsers.h
+++ b/panel-plugin/weather-parsers.h
@@ -104,8 +104,8 @@ xml_weather *parse_weather(xmlNode *cur_node);
 xml_astro *parse_astro(xmlNode *cur_node);
 
 xml_time *get_timeslice(xml_weather *data,
-                        time_t start_t,
-                        time_t end_t);
+                        const time_t start_t,
+                        const time_t end_t);
 
 void xml_time_free(xml_time *timeslice);
 


More information about the Xfce4-commits mailing list