[Xfce4-commits] <xfce4-wavelan-plugin:master> Simpler string handling

Florian Rivoal noreply at xfce.org
Fri Nov 19 15:22:03 CET 2010


Updating branch refs/heads/master
         to 682c767dfc42d2fa9630542e9585f887625e8c1a (commit)
       from bb704d0fe9a1df145df578944dc03439ba19cbac (commit)

commit 682c767dfc42d2fa9630542e9585f887625e8c1a
Author: Florian Rivoal <frivoal at xfce.org>
Date:   Mon Nov 15 10:57:32 2010 +0900

    Simpler string handling
    
    Use g_strdup rather than g_strdup_printf when possible.

 panel-plugin/wavelan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index 3716c0c..facb369 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -144,12 +144,12 @@ wavelan_timer(gpointer data)
       TRACE ("result = %d", result);
       /* reset quality indicator */
       if (result == WI_NOCARRIER) {
-        tip = g_strdup_printf(_("No carrier signal"));
+        tip = g_strdup(_("No carrier signal"));
         wavelan_set_state(wavelan, 0);
       }
       else {
         /* set error */
-        tip = g_strdup_printf("%s", wi_strerror(result));
+        tip = g_strdup(wi_strerror(result));
         wavelan_set_state(wavelan, -1);
       }
     }



More information about the Xfce4-commits mailing list