diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 16:05:44 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-06 16:05:44 +0000 |
commit | b571fdc61aa16878226c8aede4d12b0df2c69c23 (patch) | |
tree | 17c8356c7fe930ac60d3a2e57ea08cfc33e3b4de /stream.c | |
parent | 96ff31f5bfb75741115bf8586a7691efaa7bd06c (diff) | |
download | rsyslog-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |