summaryrefslogtreecommitdiffstats
path: root/x11vnc/avahi.c
diff options
context:
space:
mode:
authorrunge <runge>2009-02-22 03:04:33 +0000
committerrunge <runge>2009-02-22 03:04:33 +0000
commit81cda63cb49d66da1881c577e41364ea84b73ff9 (patch)
tree80f20c131f06dee704728cbaeccfc1e23fa4b737 /x11vnc/avahi.c
parentd400112c89cc70eb0a8b3d4c4785b8dc7c8fe658 (diff)
downloadlibvncserver-81cda63cb49d66da1881c577e41364ea84b73ff9.zip
libvncserver-81cda63cb49d66da1881c577e41364ea84b73ff9.tar.gz
fix some compiler warnings.
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");
}
OpenPOWER on IntegriCloud