summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-04-19 15:38:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-04-19 15:38:11 +0200
commit393c67ba5bc20613436552a26a6f0a20d4dda9fe (patch)
tree0fc29ff50842f12f8cc81860714ea41fd1b0b2a6 /tools
parent9039fad4019cb9a0f96eb296835476841b453dd3 (diff)
downloadrsyslog-393c67ba5bc20613436552a26a6f0a20d4dda9fe.zip
rsyslog-393c67ba5bc20613436552a26a6f0a20d4dda9fe.tar.gz
rsyslog-393c67ba5bc20613436552a26a6f0a20d4dda9fe.tar.xz
minor cleanup
Diffstat (limited to 'tools')
-rw-r--r--tools/omfile.c4
-rw-r--r--tools/ompipe.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 74b2201..a45d904 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -166,9 +166,9 @@ CODESTARTdbgPrintInstInfo
dbgprintf("\tflush interval=%d\n", pData->iFlushInterval);
dbgprintf("\tfile cache size=%d\n", pData->iDynaFileCacheSize);
dbgprintf("\tcreate directories: %s\n", pData->bCreateDirs ? "yes" : "no");
- dbgprintf("\tfile owner %d, group %d\n", pData->fileUID, pData->fileGID);
+ dbgprintf("\tfile owner %d, group %d\n", (int) pData->fileUID, (int) pData->fileGID);
dbgprintf("\tforce chown() for all files: %s\n", pData->bForceChown ? "yes" : "no");
- dbgprintf("\tdirectory owner %d, group %d\n", pData->dirUID, pData->dirGID);
+ dbgprintf("\tdirectory owner %d, group %d\n", (int) pData->dirUID, (int) pData->dirGID);
dbgprintf("\tdir create mode 0%3.3o, file create mode 0%3.3o\n",
pData->fDirCreateMode, pData->fCreateMode);
dbgprintf("\tfail if owner/group can not be set: %s\n", pData->bFailOnChown ? "yes" : "no");
diff --git a/tools/ompipe.c b/tools/ompipe.c
index 7cf6182..2d621e0 100644
--- a/tools/ompipe.c
+++ b/tools/ompipe.c
@@ -36,6 +36,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <errno.h>