logger: move /dev/log to pathnames.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2015-02-22 14:41:45 +00:00 committed by Karel Zak
parent cd2a6f1cfd
commit 52a49e9add
2 changed files with 5 additions and 1 deletions

View File

@ -193,5 +193,8 @@
/* kernel command line */
#define _PATH_PROC_CMDLINE "/proc/cmdline"
/* logger paths */
#define _PATH_DEVLOG "/dev/log"
#endif /* PATHNAMES_H */

View 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;
}