summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-22 19:33:23 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-22 19:33:23 +0000
commit7ac43947e0d9e524e53703922be22bf4ec42b8dc (patch)
tree30fd24d5a30fb0d541232f639e99b8232d0aff14 /sys/kern/subr_prf.c
parent07c7666a62a280330073edae356e22bf6a61a510 (diff)
avoid sign extension for %b
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 666dc633815..019dd038a3e 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.30 2000/06/25 18:45:19 provos Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.31 2001/02/22 19:33:22 mickey Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -819,7 +819,7 @@ reswitch: switch (ch) {
case 'b': {
char *b, *z;
int tmp;
- _uquad = va_arg(ap, int);
+ _uquad = va_arg(ap, u_int);
b = va_arg(ap, char *);
if (*b == 8)
sprintf(buf, "%qo", _uquad);