summaryrefslogtreecommitdiff
path: root/libgupnp/gupnp-linux-context-manager.c
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2013-05-29 13:01:16 +0200
committerJens Georg <mail@jensge.org>2013-05-29 14:00:30 +0200
commit80b33de1f2ce499b1ddc70ab184127d190242da3 (patch)
treef1e67a34927d7eef1617c6cfc49c14e2f2b8071a /libgupnp/gupnp-linux-context-manager.c
parent87ff32520dcefba988098592d120b1ccce768884 (diff)
downloadgupnp-80b33de1f2ce499b1ddc70ab184127d190242da3.tar.gz
Fix compilation with -Wall -Wextra
Diffstat (limited to 'libgupnp/gupnp-linux-context-manager.c')
-rw-r--r--libgupnp/gupnp-linux-context-manager.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 51c022c..2257a6e 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -196,13 +196,17 @@ network_device_create_context (NetworkInterface *device, const char *label)
}
static void
-context_signal_up (gpointer key, gpointer value, gpointer user_data)
+context_signal_up (G_GNUC_UNUSED gpointer key,
+ gpointer value,
+ gpointer user_data)
{
g_signal_emit_by_name (user_data, "context-available", value);
}
static void
-context_signal_down (gpointer key, gpointer value, gpointer user_data)
+context_signal_down (G_GNUC_UNUSED gpointer key,
+ gpointer value,
+ gpointer user_data)
{
g_signal_emit_by_name (user_data, "context-unavailable", value);
}
@@ -278,9 +282,9 @@ static void remove_context (GUPnPLinuxContextManager *self,
struct ifaddrmsg *ifa);
static gboolean
-on_netlink_message_available (GSocket *socket,
- GIOCondition condition,
- gpointer user_data)
+on_netlink_message_available (G_GNUC_UNUSED GSocket *socket,
+ G_GNUC_UNUSED GIOCondition condition,
+ gpointer user_data)
{
GUPnPLinuxContextManager *self;
@@ -540,7 +544,7 @@ receive_netlink_message (GUPnPLinuxContextManager *self, GError **error)
static char buf[4096];
static const int bufsize = 4096;
- int len;
+ gssize len;
GError *inner_error = NULL;
struct nlmsghdr *header = (struct nlmsghdr *) buf;
struct ifinfomsg *ifi;