chiark / gitweb /
journal: introduce log target 'journal' for executed processes
[elogind.git] / src / kmsg-syslogd.c
index 8cc423a299a517dadd2bba7fe3622123430b6f49..da83bb2b1eb14d597e62542ee580fd6145f323fa 100644 (file)
 #include <fcntl.h>
 #include <sys/signalfd.h>
 
+#include <systemd/sd-daemon.h>
+
 #include "util.h"
 #include "log.h"
-#include "sd-daemon.h"
 #include "fdset.h"
 
 #define SERVER_FD_MAX 16
@@ -99,7 +100,7 @@ static int server_init(Server *s) {
         }
 
         for (i = 0; i < n; i++) {
-                int fd, one = 1;
+                int fd;
 
                 fd = SD_LISTEN_FDS_START+i;