From 4cfd855eb3f148cfad74c562004a723d0a9862b7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 2 Apr 2011 02:46:16 +0200 Subject: [PATCH] systemd: fix sd_is_socket() invocation --- avahi-daemon/simple-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 7f75562..3e0ebb1 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -475,7 +475,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) { if (n == 1) { int r; - if ((r = sd_is_socket(AF_LOCAL, SOCK_STREAM, 1, 0)) < 0) { + if ((r = sd_is_socket(SD_LISTEN_FDS_START, AF_LOCAL, SOCK_STREAM, 1)) < 0) { avahi_log_warn("Passed systemd file descriptor is of wrong type: %s", strerror(-r)); goto fail; } -- 2.39.5