summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2011-03-01 08:52:10 +0000
committerphk <phk@FreeBSD.org>2011-03-01 08:52:10 +0000
commita3f6bc2c11ac49c9b576b67677d247916710b990 (patch)
tree3404e83e96d46befa9501d91041c84edd091405e /usr.sbin
parente0a7412b69d0d38e94a7dc24079abc1806c8b04e (diff)
downloadFreeBSD-src-a3f6bc2c11ac49c9b576b67677d247916710b990.zip
FreeBSD-src-a3f6bc2c11ac49c9b576b67677d247916710b990.tar.gz
Another couple of unsigned/ssize_t changes.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/fifolog/lib/fifolog_create.c2
-rw-r--r--usr.sbin/fifolog/lib/fifolog_write_poll.c2
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)));
OpenPOWER on IntegriCloud