summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-04 12:15:59 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-04 12:15:59 +0200
commit9e434f19a9baa4a6f411808b5cb6bc22d6a32781 (patch)
tree36b6ee12c665a9eb781e1984d479002bf4680ef1 /tools
parent768836ab79268e1091fc3af8bb920c03287db91a (diff)
downloadrsyslog-9e434f19a9baa4a6f411808b5cb6bc22d6a32781.tar.gz
rsyslog-9e434f19a9baa4a6f411808b5cb6bc22d6a32781.tar.xz
rsyslog-9e434f19a9baa4a6f411808b5cb6bc22d6a32781.zip
cleaned up stream class ...
... and also made it callable via an rsyslog interface rather then relying on the OS loader (important if we go for using it inside loadbale modules, which we soon possible will)
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c2
-rw-r--r--tools/syslogd.c21
2 files changed, 1 insertions, 22 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index d1274f1b..689bad0c 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -776,7 +776,7 @@ doFlush(instanceData *pData)
if(pData->poBuf->iBuf == 0)
FINALIZE; /* nothing to write, but make this a valid case */
- if(1) { // zlib enabled!
+ if(0) { // zlib enabled!
CHKiRet(doZipWrite(pData));
} else {
CHKiRet(doPhysWrite(pData, pData->poBuf->fd, (char*)pData->poBuf->pszBuf, pData->poBuf->iBuf));
diff --git a/tools/syslogd.c b/tools/syslogd.c
index b43b7a37..22cb6879 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -136,7 +136,6 @@
#include "errmsg.h"
#include "datetime.h"
#include "parser.h"
-#include "sysvar.h"
#include "unicode-helper.h"
/* definitions for objects we access */
@@ -3340,26 +3339,6 @@ GlobalClassExit(void)
objRelease(datetime, CORE_COMPONENT);
/* TODO: implement the rest of the deinit */
-#if 0
- CHKiRet(datetimeClassInit(NULL));
- CHKiRet(msgClassInit(NULL));
- CHKiRet(strmClassInit(NULL));
- CHKiRet(wtiClassInit(NULL));
- CHKiRet(wtpClassInit(NULL));
- CHKiRet(qqueueClassInit(NULL));
- CHKiRet(vmstkClassInit(NULL));
- CHKiRet(sysvarClassInit(NULL));
- CHKiRet(vmClassInit(NULL));
- CHKiRet(vmopClassInit(NULL));
- CHKiRet(vmprgClassInit(NULL));
- CHKiRet(ctok_tokenClassInit(NULL));
- CHKiRet(ctokClassInit(NULL));
- CHKiRet(exprClassInit(NULL));
-
- /* dummy "classes" */
- CHKiRet(actionClassInit());
- CHKiRet(templateInit());
-#endif
/* dummy "classes */
strExit();