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

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


Updating branch refs/heads/master
         to ebea93d55a2dc96cb673a2869411e20b282baa9d (commit)
       from 398acd6b8ca32f4f7ee2a5450ed599c99c16db5d (commit)

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

    Add const qualifiers where appropriate: weather-config

 panel-plugin/weather-config.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index b8644e3..ed57659 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -34,6 +34,7 @@
 #define BORDER 8
 #define LOC_NAME_MAX_LEN 50
 
+
 static const labeloption labeloptions[OPTIONS_N] = {
     {N_("Temperature (T)"), TEMPERATURE},
     {N_("Atmosphere pressure (P)"), PRESSURE},
@@ -56,7 +57,7 @@ static cb_function cb = NULL;
 
 static void
 add_mdl_option(GtkListStore *mdl,
-               gint opt)
+               const gint opt)
 {
     GtkTreeIter iter;
 
@@ -349,7 +350,7 @@ apply_options(xfceweather_dialog *dialog)
 
 
 static int
-option_i(datas opt)
+option_i(const datas opt)
 {
     guint i;
 
@@ -389,7 +390,7 @@ static void
 auto_locate_cb(const gchar *loc_name,
                const gchar *lat,
                const gchar *lon,
-               unit_systems unit_system,
+               const unit_systems unit_system,
                gpointer user_data)
 {
     xfceweather_dialog *dialog = (xfceweather_dialog *) user_data;


More information about the Xfce4-commits mailing list