summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-31 15:23:28 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-31 15:23:28 +0000
commit074ece90c0b7f32307716eeb6d0308b83197b6ce (patch)
tree707340dde192c4c4ac8b196f6da2d26bbfc22247 /syslogd.c
parent7449e8356b19900acaa33e387bd4ea65ba85e204 (diff)
downloadrsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.gz
rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.tar.xz
rsyslog-074ece90c0b7f32307716eeb6d0308b83197b6ce.zip
- got the basic code in place to create an in-memory list of cfsysline
handlers (omfile.c used as testing case) -- not yet in active code
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/syslogd.c b/syslogd.c
index e4121327..04013f48 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -3431,37 +3431,6 @@ static rsRetVal addAllowedSenderLine(char* pName, uchar** ppRestOfConfLine)
}
-/* set the dynaFile cache size. Does some limit checking.
- * rgerhards, 2007-07-31
- */
-static rsRetVal setDynaFileCacheSize(void __attribute__((unused)) *pVal, int iNewVal)
-{
- DEFiRet;
- uchar errMsg[128]; /* for dynamic error messages */
-
- if(iNewVal < 1) {
- snprintf((char*) errMsg, sizeof(errMsg)/sizeof(uchar),
- "DynaFileCacheSize must be greater 0 (%d given), changed to 1.", iNewVal);
- errno = 0;
- logerror((char*) errMsg);
- iRet = RS_RET_VAL_OUT_OF_RANGE;
- iNewVal = 1;
- } else if(iNewVal > 10000) {
- snprintf((char*) errMsg, sizeof(errMsg)/sizeof(uchar),
- "DynaFileCacheSize maximum is 10,000 (%d given), changed to 10,000.", iNewVal);
- errno = 0;
- logerror((char*) errMsg);
- iRet = RS_RET_VAL_OUT_OF_RANGE;
- iNewVal = 10000;
- }
-
- iDynaFileCacheSize = iNewVal;
- dprintf("DynaFileCacheSize changed to %d.\n", iNewVal);
-
- return iRet;
-}
-
-
/* process a $ModLoad config line.
* As of now, it is a dummy, that will later evolve into the
* loader for plug-ins.
@@ -3771,6 +3740,8 @@ static void dbgPrintInitInfo(void)
modPrintList();
ochPrintList();
+ dbgPrintCfSysLineHandlers();
+
#ifdef SYSLOG_INET
/* now the allowedSender lists: */
PrintAllowedSenders(1); /* UDP */