From 7ac43947e0d9e524e53703922be22bf4ec42b8dc Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 22 Feb 2001 19:33:23 +0000 Subject: avoid sign extension for %b --- sys/kern/subr_prf.c | 4 ++-- 1 file 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); -- cgit v1.2.3