summaryrefslogtreecommitdiffstats
path: root/x11vnc/avahi.c
diff options
context:
space:
mode:
authorrunge <runge>2009-01-04 04:56:53 +0000
committerrunge <runge>2009-01-04 04:56:53 +0000
commit91174efbb8e2fb09520477af6593f99b865777b0 (patch)
tree796e0213305556909052c8ea203c048eab732353 /x11vnc/avahi.c
parent4fdb4cc67f1563156593e5b3deca80acf35f39ed (diff)
downloadlibtdevnc-91174efbb8e2fb09520477af6593f99b865777b0.tar.gz
libtdevnc-91174efbb8e2fb09520477af6593f99b865777b0.zip
x11vnc: fix compiler warnings.
Diffstat (limited to 'x11vnc/avahi.c')
-rw-r--r--x11vnc/avahi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x11vnc/avahi.c b/x11vnc/avahi.c
index 5b9882b..5f4e8ba 100644
--- a/x11vnc/avahi.c
+++ b/x11vnc/avahi.c
@@ -1,6 +1,7 @@
/* -- avahi.c -- */
#include "x11vnc.h"
+#include "connections.h"
void avahi_initialise(void);
void avahi_advertise(const char *name, const char *host, const uint16_t port);
@@ -21,6 +22,8 @@ static int try_avahi_helper(const char *name, const char *host, const uint16_t p
char *cmd, *p, *path = getenv("PATH"), portstr[32];
int i;
+ if (!name || !host || !port) {}
+
/* avahi-publish */
if (no_external_cmds || !cmd_ok("zeroconf")) {
return 0;