[Xfce4-commits] <xfce4-wavelan-plugin:master> fix warnings
Landry Breuil
noreply at xfce.org
Mon Apr 9 19:06:05 CEST 2012
Updating branch refs/heads/master
to a0a75471fc94715ce04cea96e7bb37718c818933 (commit)
from fbd8ceb0105a6cdaef97fdb8dc8f86cb6b30d1ea (commit)
commit a0a75471fc94715ce04cea96e7bb37718c818933
Author: Landry Breuil <landry at xfce.org>
Date: Mon Apr 9 18:51:04 2012 +0200
fix warnings
panel-plugin/wavelan.c | 3 +--
panel-plugin/wi_bsd.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index 71c6751..94660a4 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -77,7 +77,6 @@ wavelan_set_state(t_wavelan *wavelan, gint state)
/* state = 0 -> no link, =-1 -> error */
TRACE ("Entered wavelan_set_state, state = %u", state);
- GtkRcStyle *rc = NULL;
GdkColor color;
gchar signal_color_bad[] = "#e00000";
@@ -494,7 +493,7 @@ static void
wavelan_create_options (XfcePanelPlugin *plugin, t_wavelan *wavelan)
{
GtkWidget *dlg, *hbox, *label, *interface, *vbox, *autohide;
- GtkWidget *autohide_missing, *header, *warn_label, *signal_colors;
+ GtkWidget *autohide_missing, *warn_label, *signal_colors;
GtkWidget *combo;
GList *interfaces, *lp;
diff --git a/panel-plugin/wi_bsd.c b/panel-plugin/wi_bsd.c
index 7976523..62327e1 100644
--- a/panel-plugin/wi_bsd.c
+++ b/panel-plugin/wi_bsd.c
@@ -158,7 +158,7 @@ wi_query(struct wi_device *device, struct wi_stats *stats)
/* clear stats first */
bzero((void *)stats, sizeof(*stats));
- g_strlcpy(stats->ws_qunit, "dBm", 4);
+ strlcpy(stats->ws_qunit, "dBm", 4);
/* check vendor (independent of carrier state) */
#if defined(__FreeBSD_kernel__)
if ((result = _wi_vendor(device, stats->ws_vendor, WI_MAXSTRLEN)) != WI_OK)
More information about the Xfce4-commits
mailing list