[Xfce4-commits] [panel-plugins/xfce4-wavelan-plugin] 01/04: Make this compile with -Wall -Werror (declarations after statement)

noreply at xfce.org noreply at xfce.org
Sun Apr 20 10:45:54 CEST 2014


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-wavelan-plugin.

commit 94af4b16ae15d9883eb748aa9c4795b4331fc622
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Apr 20 10:42:33 2014 +0200

    Make this compile with -Wall -Werror (declarations after statement)
    
    While here fix the TRACE call to print gint state as %d, not %u
---
 panel-plugin/wavelan.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index 51e8aaa..a8e1755 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -78,9 +78,6 @@ static void wavelan_set_orientation(XfcePanelPlugin* plugin, GtkOrientation orie
 static void
 wavelan_set_state(t_wavelan *wavelan, gint state)
 {  
-  /* state = 0 -> no link, =-1 -> error */
-  TRACE ("Entered wavelan_set_state, state = %u", state);
-
   GdkColor color;
 
   gchar signal_color_bad[] = "#e00000";
@@ -88,6 +85,9 @@ wavelan_set_state(t_wavelan *wavelan, gint state)
   gchar signal_color_good[] = "#e6ff00";
   gchar signal_color_strong[] = "#06c500";
   
+  /* state = 0 -> no link, =-1 -> error */
+  TRACE ("Entered wavelan_set_state, state = %d", state);
+
   if(state > 100)
     state = 100;
 
@@ -632,11 +632,10 @@ wavelan_show_about (XfcePanelPlugin *plugin, t_wavelan *wavelan)
 static void
 wavelan_construct (XfcePanelPlugin *plugin)
 {
-  
-  TRACE ("Entered wavelan_construct");
-  
   t_wavelan *wavelan = wavelan_new(plugin);
 
+  TRACE ("Entered wavelan_construct");
+
   xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
 
   g_signal_connect (plugin, "orientation-changed",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list