Date: 31 May 2002 10:24:12 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Bruce Evans <bde@zeta.org.au> Cc: Dima Dorfman <dima@trit.org>, <audit@FreeBSD.ORG> Subject: Re: %j for printf(9) Message-ID: <xzpsn48d8sz.fsf@flood.ping.uio.no> In-Reply-To: <20020528184446.W19885-100000@gamplex.bde.org> References: <20020528184446.W19885-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce, does this look OK? fetch_nosign: if (jflag) num = va_arg(ap, uintmax_t); else if (qflag) num = va_arg(ap, u_quad_t); else if (lflag) num = va_arg(ap, u_long); else num = va_arg(ap, u_int); goto nosign; fetch_number: if (jflag) num = va_arg(ap, intmax_t); else if (qflag) num = sign ? (uintmax_t)va_arg(ap, quad_t) : va_arg(ap, u_quad_t); else if (lflag) num = sign ? (uintmax_t)va_arg(ap, long) : va_arg(ap, u_long); else num = sign ? (uintmax_t)va_arg(ap, int) : va_arg(ap, u_int); goto number; DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsn48d8sz.fsf>