]> git.meshlink.io Git - catta/blobdiff - avahi-glib/glib-watch.c
fix retval sending
[catta] / avahi-glib / glib-watch.c
index e6def467050da96cbe02bfb918cc57613261aecb..9d804409df23911c1aea33c44f5eb75785a7e1ef 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <avahi-common/llist.h>
 #include <avahi-common/malloc.h>
+#include <avahi-common/timeval.h>
 
 #include "glib-watch.h"
 
@@ -299,7 +300,7 @@ static gboolean check_func(GSource *source) {
     return FALSE;
 }
 
-static gboolean dispatch_func(GSource *source, GSourceFunc callback, gpointer userdata) {
+static gboolean dispatch_func(GSource *source, AVAHI_GCC_UNUSED GSourceFunc callback, AVAHI_GCC_UNUSED gpointer userdata) {
     AvahiGLibPoll* g = (AvahiGLibPoll*) source;
     AvahiWatch *w;
     AvahiTimeout *next_timeout;