projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c986a0
)
Simplified use of syslog options
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 4 Mar 2009 12:52:35 +0000
(13:52 +0100)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 4 Mar 2009 12:52:35 +0000
(13:52 +0100)
Patch from Hermann Lauer
src/modules/rlm_linelog/rlm_linelog.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_linelog/rlm_linelog.c
b/src/modules/rlm_linelog/rlm_linelog.c
index
55e47cd
..
0dc1486
100755
(executable)
--- a/
src/modules/rlm_linelog/rlm_linelog.c
+++ b/
src/modules/rlm_linelog/rlm_linelog.c
@@
-34,14
+34,6
@@
RCSID("$Id$")
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
-#ifndef LOG_AUTHPRIV
-#define LOG_AUTHPRIV LOG_USER
-#endif
-
-#ifndef LOG_PID
-#define LOG_PID (0)
-#endif
-
#ifndef LOG_INFO
#define LOG_INFO (0)
#endif
@@
-270,7
+262,7
@@
static int do_linelog(void *instance, REQUEST *request)
#ifdef HAVE_SYSLOG_H
} else {
- syslog(LOG_
AUTHPRIV | LOG_PID | LOG_
INFO, "%s", line);
+ syslog(LOG_INFO, "%s", line);
#endif
}