aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2008-11-24 14:40:40 +0100
committerThomas Jansen <mithi@mithi.net>2008-11-24 14:40:40 +0100
commitf7d995f807aa6a8a70a20e7a5e97984de60d23bd (patch)
treeb67b3355bf690576e861bd350f159e577939e4b8 /src/zeroconf.c
parentb31b334ba638610f432c5b1e5f489edda6a606e1 (diff)
downloadmpd-f7d995f807aa6a8a70a20e7a5e97984de60d23bd.tar.gz
mpd-f7d995f807aa6a8a70a20e7a5e97984de60d23bd.tar.xz
mpd-f7d995f807aa6a8a70a20e7a5e97984de60d23bd.zip
zeroconf.c: replaced mpd_unused by G_GNUC_UNUSED
Diffstat (limited to 'src/zeroconf.c')
-rw-r--r--src/zeroconf.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index e9742de49..74351256c 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -26,6 +26,8 @@
#include "ioops.h"
#include "utils.h"
+#include <glib.h>
+
/* The dns-sd service type qualifier to publish */
#define SERVICE_TYPE "_mpd._tcp"
@@ -92,7 +94,7 @@ struct AvahiTimeout {
static AvahiWatch *avahiWatchList;
static AvahiTimeout *avahiTimeoutList;
-static AvahiWatch *avahiWatchNew(mpd_unused const AvahiPoll * api, int fd,
+static AvahiWatch *avahiWatchNew(G_GNUC_UNUSED const AvahiPoll * api, int fd,
AvahiWatchEvent event,
AvahiWatchCallback callback, void *userdata)
{
@@ -175,7 +177,7 @@ static void avahiTimeoutFree(AvahiTimeout * t)
free(t);
}
-static AvahiTimeout *avahiTimeoutNew(mpd_unused const AvahiPoll * api,
+static AvahiTimeout *avahiTimeoutNew(G_GNUC_UNUSED const AvahiPoll * api,
const struct timeval *tv,
AvahiTimeoutCallback callback,
void *userdata)
@@ -200,7 +202,7 @@ static AvahiTimeout *avahiTimeoutNew(mpd_unused const AvahiPoll * api,
/* Callback when the EntryGroup changes state */
static void avahiGroupCallback(AvahiEntryGroup * g,
AvahiEntryGroupState state,
- mpd_unused void *userdata)
+ G_GNUC_UNUSED void *userdata)
{
char *n;
assert(g);
@@ -290,7 +292,7 @@ fail:
/* Callback when avahi changes state */
static void avahiClientCallback(AvahiClient * c, AvahiClientState state,
- mpd_unused void *userdata)
+ G_GNUC_UNUSED void *userdata)
{
int reason;
assert(c);