[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkgsrc: Xen 4.1 available
In article <201104142025.QAA01383%Sparkle.Rodents-Montreal.ORG@localhost>,
der Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
>> libxl_create.c:174: warning: format '%lu' expects type 'long unsigned
>int', but argument 3 has type 'time_t'
>> I think %llu should be used to printf time_t in NetBSD/i386.
>Only if you cast it to unsigned long long int first. There is no
>guarantee that time_t is long, or long long, or unsigned long, or any
>particular integral type.
>I have a fuzzy memory that in recent standards - POSIX most likely -
>there's a printf format modifier for time_t, akin to C's %zu for
>size_t. Might be worth looking into...or I might be hallucinating.
There is no formatting character for time_t, and time_t needs to be signed,
so (long long) not (unsigned long long).
Main Index |
Thread Index |