summaryrefslogtreecommitdiff
path: root/bin/chio/chio.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-03-21 22:23:59 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-03-21 22:23:59 +0000
commit3f90e206b1b329424e86c25be9330dde99cd1b2a (patch)
tree84064fd5fbf1c5b2ef05220ddd35fd9772574c2c /bin/chio/chio.c
parentd3f88817a3849b4efe3ce3034fc629bf2ece3955 (diff)
-Wall
Diffstat (limited to 'bin/chio/chio.c')
-rw-r--r--bin/chio/chio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index bfb991103e6..a11ff0c2792 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chio.c,v 1.8 1998/06/23 18:26:36 millert Exp $ */
+/* $OpenBSD: chio.c,v 1.9 2001/03/21 22:23:58 art Exp $ */
/* $NetBSD: chio.c,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $ */
/*
@@ -639,7 +639,6 @@ bits_to_string(v, cp)
{
const char *np;
char f, sep, *bp;
- size_t n;
static char buf[128];
bp = buf;
@@ -651,7 +650,7 @@ bits_to_string(v, cp)
if ((v & (1 << (f - 1))) == 0)
continue;
(void)snprintf(bp, sizeof(buf) - (bp - &buf[0]),
- "%c%.*s", sep, np - cp, cp);
+ "%c%.*s", sep, (int)(np - cp), cp);
bp += strlen(bp);
sep = ',';
}