summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDemo <rger@debian5-demo.demo.example.net>2009-03-31 22:10:37 +0200
committerDemo <rger@debian5-demo.demo.example.net>2009-03-31 22:10:37 +0200
commite3f21521cd6ae237fd9b362281fe188380210fb5 (patch)
treef1a497b19ff3be69538cce910519df53df3fcf90 /tools
parentd27edc7587dba7b850759d151d90cdad1cb34a35 (diff)
downloadrsyslog-e3f21521cd6ae237fd9b362281fe188380210fb5.tar.gz
rsyslog-e3f21521cd6ae237fd9b362281fe188380210fb5.tar.xz
rsyslog-e3f21521cd6ae237fd9b362281fe188380210fb5.zip
fixed some problems with "make check"
interestingly, they manifested on Debian, only, but potentially existed on other platforms, too.
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c3
-rw-r--r--tools/omfwd.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 65306846..5141b4da 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -725,7 +725,6 @@ CODESTARTparseSelectorAct
} else {
pData->bSyncFile = bEnableSync ? 1 : 0;
}
-
pData->f_sizeLimit = 0; /* default value, use outchannels to configure! */
switch (*p)
@@ -822,7 +821,7 @@ CODESTARTparseSelectorAct
if(pData->fd < 0 ) {
pData->fd = -1;
DBGPRINTF("Error opening log file: %s\n", pData->f_fname);
- errmsg.LogError(0, NO_ERRCODE, "%s", pData->f_fname);
+ errmsg.LogError(0, RS_RET_NO_FILE_ACCESS, "Could no open output file '%s'", pData->f_fname);
break;
}
if(strcmp((char*) p, _PATH_CONSOLE) == 0)
diff --git a/tools/omfwd.c b/tools/omfwd.c
index 7a945ce0..88a382e0 100644
--- a/tools/omfwd.c
+++ b/tools/omfwd.c
@@ -177,7 +177,7 @@ ENDfreeInstance
BEGINdbgPrintInstInfo
CODESTARTdbgPrintInstInfo
- printf("%s", pData->f_hname);
+ dbgprintf("%s", pData->f_hname);
ENDdbgPrintInstInfo