diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-10 18:34:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-10 18:34:43 +0000 |
commit | 7c534b9234811fe797e612bc878772f6e256b98a (patch) | |
tree | ab4e9a9f6ab88484e996e66d578c5b8f6bb44b1b /sbin/dhclient/privsep.c | |
parent | c084fe462b18f30d5b08280ade567780fae43e08 (diff) |
missing casts spotted by 64 bit cc
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r-- | sbin/dhclient/privsep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c index 0fb21656dee..cf47e56ceb6 100644 --- a/sbin/dhclient/privsep.c +++ b/sbin/dhclient/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.6 2004/05/04 19:56:18 henning Exp $ */ +/* $OpenBSD: privsep.c,v 1.7 2004/05/10 18:34:42 deraadt Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -62,8 +62,8 @@ buf_close(int sock, struct buf *buf) } while (n == -1 && (errno == EAGAIN || errno == EINTR)); if (buf->rpos < buf->size) - error("short write: wanted %u got %d bytes", buf->size, - buf->rpos); + error("short write: wanted %lu got %ld bytes", + (unsigned long)buf->size, (long)buf->rpos); free(buf->buf); free(buf); @@ -91,7 +91,8 @@ buf_read(int sock, void *buf, size_t nbytes) error("buf_read: %m"); if (r < nbytes) - error("short read: wanted %u got %d bytes", nbytes, r); + error("short read: wanted %lu got %ld bytes", + (unsigned long)nbytes, (long)r); return (r); } |