Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Dec 2001 13:41:07 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Mike Barcroft <mike@freebsd.org>
Cc:        audit@freebsd.org, markm@freebsd.org, Bruce Evans <bde@zeta.org.au>
Subject:   Re: Warns for tcopy and wc. 
Message-ID:   <200112041341.aa05762@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Mon, 03 Dec 2001 21:54:52 EST." <20011203215452.E57237@espresso.q9media.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 04, 2001 at 12:51:25PM +1100, Bruce Evans wrote:
bde> %ll should not be used to print typedefed types after this.

mike> Consider using intmax_t and the printf(3) modifier %j (or the unsigned
mike> variant).

I presume casting to intmax_t will be the oficially blessed way of
printing typedefed things now? If so we should make gcc's format
warning code understand the %j modifier - maybe I should look into
that (or maybe some of the FreeBSD standards people are doing that?).

Is it apropriate to use intmax_t where you want to count something
big? For example, would it be OK to change wc and tcopy to use
intmax_t instead of the int64_t and quad_t which they currently
use?

	David.

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? <200112041341.aa05762>