summaryrefslogtreecommitdiffstats
path: root/x11vnc/avahi.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/avahi.c')
-rw-r--r--x11vnc/avahi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11vnc/avahi.c b/x11vnc/avahi.c
index 5f4e8ba..ef0571d 100644
--- a/x11vnc/avahi.c
+++ b/x11vnc/avahi.c
@@ -2,6 +2,7 @@
#include "x11vnc.h"
#include "connections.h"
+#include "cleanup.h"
void avahi_initialise(void);
void avahi_advertise(const char *name, const char *host, const uint16_t port);
@@ -136,6 +137,10 @@ void avahi_cleanup(void) {
#include <avahi-client/client.h>
#include <avahi-client/publish.h>
+#include <avahi-common/malloc.h>
+#include <avahi-common/error.h>
+
+
static AvahiThreadedPoll *_poll = NULL;
static AvahiClient *_client = NULL;
static AvahiEntryGroup *_group = NULL;
@@ -242,6 +247,8 @@ if (db) fprintf(stderr, "in _avahi_entry_group_callback %d 0x%p\n", state, svc)
avahi_strerror(avahi_client_errno(
avahi_entry_group_get_client(g))));
break;
+ default:
+ break;
}
if (db) fprintf(stderr, "out _avahi_entry_group_callback\n");
}