From: Sami Kerola Date: Sun, 22 Feb 2015 14:41:45 +0000 (+0000) Subject: logger: move /dev/log to pathnames.h X-Git-Tag: v2.27-rc1~428 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a49e9add7b3618c65782b64c48226311dda01a;p=thirdparty%2Futil-linux.git logger: move /dev/log to pathnames.h Signed-off-by: Sami Kerola --- diff --git a/include/pathnames.h b/include/pathnames.h index cbc93b7698..cc01589cda 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -193,5 +193,8 @@ /* kernel command line */ #define _PATH_PROC_CMDLINE "/proc/cmdline" +/* logger paths */ +#define _PATH_DEVLOG "/dev/log" + #endif /* PATHNAMES_H */ diff --git a/misc-utils/logger.c b/misc-utils/logger.c index a3af7f1135..db6fd448a3 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -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; }