diff options
-rw-r--r-- | usr.sbin/fifolog/lib/fifolog_create.c | 2 | ||||
-rw-r--r-- | usr.sbin/fifolog/lib/fifolog_write_poll.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/fifolog/lib/fifolog_create.c b/usr.sbin/fifolog/lib/fifolog_create.c index 2a966e2..4a7c333 100644 --- a/usr.sbin/fifolog/lib/fifolog_create.c +++ b/usr.sbin/fifolog/lib/fifolog_create.c @@ -44,7 +44,7 @@ const char * fifolog_create(const char *fn, off_t size, ssize_t recsize) { int i, fd; - unsigned u; + ssize_t u; off_t ms; struct stat st; char *buf; diff --git a/usr.sbin/fifolog/lib/fifolog_write_poll.c b/usr.sbin/fifolog/lib/fifolog_write_poll.c index 0c0b0fb..9ebd5be 100644 --- a/usr.sbin/fifolog/lib/fifolog_write_poll.c +++ b/usr.sbin/fifolog/lib/fifolog_write_poll.c @@ -318,7 +318,7 @@ fifolog_write_record(struct fifolog_writer *f, uint32_t id, time_t now, { const unsigned char *p; uint8_t buf[9]; - unsigned bufl; + ssize_t bufl; fifolog_write_assert(f); assert(!(id & (FIFOLOG_TIMESTAMP|FIFOLOG_LENGTH))); |