Subject: Re: scan_ffs from OpenBSD ported and improved.
To: None <email@example.com>
From: Roland Illig <firstname.lastname@example.org>
Date: 06/07/2005 00:16:03
Juan RP wrote:
> Roland Illig <email@example.com> wrote:
>>In calls to printf(3), explicitly cast the PRIu64 arguments to uint64_t.
>>Just for portability. Or find someone who guarantees that daddr_t will
>>always be (and stay) equivalent to uint64_t.
> I thought PRI* definitions were already portable?
The only use of PRIu64 is as a format specification for passing a
uint64_t to the printf family of functions. That's what the C standard says.
It has nothing to do with other data types, especially not daddr_t. Or,
as I said, you must ensure that daddr_t is actually uint64_t.