zeroconf.c: replaced mpd_unused by G_GNUC_UNUSED

This commit is contained in:
Thomas Jansen 2008-11-24 14:40:40 +01:00
parent b31b334ba6
commit f7d995f807
1 changed files with 6 additions and 4 deletions

View File

@ -26,6 +26,8 @@
#include "ioops.h" #include "ioops.h"
#include "utils.h" #include "utils.h"
#include <glib.h>
/* The dns-sd service type qualifier to publish */ /* The dns-sd service type qualifier to publish */
#define SERVICE_TYPE "_mpd._tcp" #define SERVICE_TYPE "_mpd._tcp"
@ -92,7 +94,7 @@ struct AvahiTimeout {
static AvahiWatch *avahiWatchList; static AvahiWatch *avahiWatchList;
static AvahiTimeout *avahiTimeoutList; 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, AvahiWatchEvent event,
AvahiWatchCallback callback, void *userdata) AvahiWatchCallback callback, void *userdata)
{ {
@ -175,7 +177,7 @@ static void avahiTimeoutFree(AvahiTimeout * t)
free(t); free(t);
} }
static AvahiTimeout *avahiTimeoutNew(mpd_unused const AvahiPoll * api, static AvahiTimeout *avahiTimeoutNew(G_GNUC_UNUSED const AvahiPoll * api,
const struct timeval *tv, const struct timeval *tv,
AvahiTimeoutCallback callback, AvahiTimeoutCallback callback,
void *userdata) void *userdata)
@ -200,7 +202,7 @@ static AvahiTimeout *avahiTimeoutNew(mpd_unused const AvahiPoll * api,
/* Callback when the EntryGroup changes state */ /* Callback when the EntryGroup changes state */
static void avahiGroupCallback(AvahiEntryGroup * g, static void avahiGroupCallback(AvahiEntryGroup * g,
AvahiEntryGroupState state, AvahiEntryGroupState state,
mpd_unused void *userdata) G_GNUC_UNUSED void *userdata)
{ {
char *n; char *n;
assert(g); assert(g);
@ -290,7 +292,7 @@ fail:
/* Callback when avahi changes state */ /* Callback when avahi changes state */
static void avahiClientCallback(AvahiClient * c, AvahiClientState state, static void avahiClientCallback(AvahiClient * c, AvahiClientState state,
mpd_unused void *userdata) G_GNUC_UNUSED void *userdata)
{ {
int reason; int reason;
assert(c); assert(c);