summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-06 16:05:44 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-06 16:05:44 +0000
commitb571fdc61aa16878226c8aede4d12b0df2c69c23 (patch)
tree17c8356c7fe930ac60d3a2e57ea08cfc33e3b4de /stream.c
parent96ff31f5bfb75741115bf8586a7691efaa7bd06c (diff)
downloadrsyslog-b571fdc61aa16878226c8aede4d12b0df2c69c23.tar.gz
rsyslog-b571fdc61aa16878226c8aede4d12b0df2c69c23.tar.xz
rsyslog-b571fdc61aa16878226c8aede4d12b0df2c69c23.zip
fixed some compiler warnings under FreeBSD
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream.c b/stream.c
index 986d246d..6a54b7a6 100644
--- a/stream.c
+++ b/stream.c
@@ -501,7 +501,7 @@ rsRetVal strmFlush(strm_t *pThis)
DEFiRet;
ASSERT(pThis != NULL);
- dbgoprint((obj_t*) pThis, "file %d flush, buflen %ld\n", pThis->fd, pThis->iBufPtr);
+ dbgoprint((obj_t*) pThis, "file %d flush, buflen %ld\n", pThis->fd, (long) pThis->iBufPtr);
if(pThis->tOperationsMode == STREAMMODE_WRITE && pThis->iBufPtr > 0) {
iRet = strmWriteInternal(pThis, pThis->pIOBuf, pThis->iBufPtr);
@@ -526,7 +526,7 @@ static rsRetVal strmSeek(strm_t *pThis, off_t offs)
else
strmFlush(pThis);
int i;
- dbgoprint((obj_t*) pThis, "file %d seek, pos %ld\n", pThis->fd, offs);
+ dbgoprint((obj_t*) pThis, "file %d seek, pos %ld\n", pThis->fd, (long) offs);
i = lseek(pThis->fd, offs, SEEK_SET); // TODO: check error!
pThis->iCurrOffs = offs; /* we are now at *this* offset */
pThis->iBufPtr = 0; /* buffer invalidated */