]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: move /dev/log to pathnames.h
authorSami Kerola <kerolasa@iki.fi>
Sun, 22 Feb 2015 14:41:45 +0000 (14:41 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2015 12:18:49 +0000 (13:18 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/pathnames.h
misc-utils/logger.c

index cbc93b76985e452f297f9d47358fb2997d0cb1ea..cc01589cda5cd94b4f41f4378f67ea605e2f9a89 100644 (file)
 /* kernel command line */
 #define _PATH_PROC_CMDLINE     "/proc/cmdline"
 
+/* logger paths */
+#define _PATH_DEVLOG           "/dev/log"
+
 #endif /* PATHNAMES_H */
 
index a3af7f11357484ef3e1f729ead2704df399502ae..db6fd448a334e328bccbddf7b5fb93987dda8ef3 100644 (file)
@@ -56,6 +56,7 @@
 #include "c.h"
 #include "closestream.h"
 #include "nls.h"
+#include "pathnames.h"
 #include "strutils.h"
 #include "xalloc.h"
 
@@ -481,7 +482,7 @@ static void logger_open(struct logger_ctl *ctl)
                        ctl->syslogfp = syslog_rfc5424;
                return;
        }
-       ctl->fd = unix_socket(ctl, "/dev/log", ctl->socket_type);
+       ctl->fd = unix_socket(ctl, _PATH_DEVLOG, ctl->socket_type);
        ctl->syslogfp = syslog_local;
 }