From: Ruben Kerkhof Date: Tue, 8 Sep 2015 14:13:47 +0000 (+0200) Subject: notify_systemd: remove dead code X-Git-Tag: collectd-5.6.0~591^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b4da1f36e67a617cf742d667ad3b922a219f7a6;p=collectd.git notify_systemd: remove dead code The whole function is already wrapped in #ifdef KERNEL_LINUX --- diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 02fd66f8..df238e71 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -481,7 +481,6 @@ int notify_systemd (void) } else { -#if KERNEL_LINUX /* Linux abstract namespace socket: specify address as "\0foo", i.e. * start with a null byte. Since null bytes have no special meaning in * that case, we have to set su_size correctly to cover only the bytes @@ -491,11 +490,6 @@ int notify_systemd (void) su_size = sizeof (sa_family_t) + strlen (notifysocket); if (su_size > sizeof (su)) su_size = sizeof (su); -#else - ERROR ("Systemd socket uses Linux abstract namespace notation (\"%s\"), " - "but I don't appear to be running on Linux.", notifysocket); - return 0; -#endif } if (sendto (fd, buffer, strlen (buffer), MSG_NOSIGNAL, (void *) &su, (socklen_t) su_size) < 0)