diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 09:54:10 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 09:54:10 +0200 |
commit | 911101ed26292c766eae0b48575e5911b96d2ea7 (patch) | |
tree | 743d3dc673fbb29b734cd1f0f25d53a649e63ecf /tools | |
parent | e16a207726dce038835cdc12a928a95b5b915440 (diff) | |
download | rsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.tar.gz rsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.tar.xz rsyslog-911101ed26292c766eae0b48575e5911b96d2ea7.zip |
moved "option_DisallowWarning" variable to global data pool
Diffstat (limited to 'tools')
-rw-r--r-- | tools/syslogd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index 5cb0cb38..2da9187c 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -397,10 +397,6 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a } - -int option_DisallowWarning = 1; /* complain if message from disallowed sender is received */ - - /* hardcoded standard templates (used for defaults) */ static uchar template_SyslogProtocol23Format[] = "\"<%PRI%>1 %TIMESTAMP:::date-rfc3339% %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA% %msg%\n\""; static uchar template_TraditionalFileFormat[] = "\"%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n\""; @@ -3233,7 +3229,7 @@ int realMain(int argc, char **argv) bParseHOSTNAMEandTAG = 0; break; case 'w': /* disable disallowed host warnigs */ - option_DisallowWarning = 0; + glbl.SetOption_DisallowWarning(0); break; case 'x': /* disable dns for remote messages */ DisableDNS = 1; |