#include "chroot.h"
#endif
+#ifndef AF_LOCAL
+#define AF_LOCAL AF_UNIX
+#endif
+#ifndef PF_LOCAL
+#define PF_LOCAL PF_UNIX
+#endif
+
#define BUFFER_SIZE (20*1024)
#define CLIENTS_MAX 50
goto fail;
client_output_printf(c, "+ Browsing ...\n");
- avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg);
+ avahi_log_debug(__FILE__": Got %s request.", cmd);
} else if (strcmp(cmd, "BROWSE-DNS-SERVERS-IPV6") == 0 && n_args == 1) {
c->state = CLIENT_BROWSE_DNS_SERVERS;
goto fail;
client_output_printf(c, "+ Browsing ...\n");
- avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg);
+ avahi_log_debug(__FILE__": Got %s request.", cmd);
} else if (strcmp(cmd, "BROWSE-DNS-SERVERS") == 0 && n_args == 1) {
c->state = CLIENT_BROWSE_DNS_SERVERS;
goto fail;
client_output_printf(c, "+ Browsing ...\n");
- avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg);
+ avahi_log_debug(__FILE__": Got %s request.", cmd);
} else {
client_output_printf(c, "%+i Invalid command \"%s\", try \"HELP\".\n", AVAHI_ERR_INVALID_OPERATION, cmd);
strncpy(sa.sun_path, AVAHI_SOCKET, sizeof(sa.sun_path)-1);
/* We simply remove existing UNIX sockets under this name. The
- Avahi daemons makes sure that it runs only once on a host,
+ Avahi daemon makes sure that it runs only once on a host,
therefore sockets that already exist are stale and may be
removed without any ill effects */