From 91174efbb8e2fb09520477af6593f99b865777b0 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 4 Jan 2009 04:56:53 +0000 Subject: x11vnc: fix compiler warnings. --- x11vnc/avahi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'x11vnc/avahi.c') 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; -- cgit v1.2.1