From owner-freebsd-audit Fri May 31 1:24:18 2002 Delivered-To: freebsd-audit@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id CEBF837B406 for ; Fri, 31 May 2002 01:24:15 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id D56FB5307; Fri, 31 May 2002 10:24:13 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bruce Evans Cc: Dima Dorfman , Subject: Re: %j for printf(9) References: <20020528184446.W19885-100000@gamplex.bde.org> From: Dag-Erling Smorgrav Date: 31 May 2002 10:24:12 +0200 In-Reply-To: <20020528184446.W19885-100000@gamplex.bde.org> Message-ID: Lines: 29 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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