From a3f6bc2c11ac49c9b576b67677d247916710b990 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 1 Mar 2011 08:52:10 +0000 Subject: [PATCH] Another couple of unsigned/ssize_t changes. --- usr.sbin/fifolog/lib/fifolog_create.c | 2 +- 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 2a966e2080f1..4a7c3338ad37 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 0c0b0fb62d4f..9ebd5beee23d 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)));