[gnutls-dev] size_t, int and 64 bit machines
Simon Josefsson
simon at josefsson.org
Wed Mar 21 14:41:27 CET 2007
Werner Koch <wk at gnupg.org> writes:
> On Wed, 21 Mar 2007 04:22, deanna at sdf.lonestar.org said:
>
>> - printf ("Peer provided %d certificates.\n", cert_list_size);
>> + printf ("Peer provided %zu certificates.\n", cert_list_size);
>
> Are you sure that all C89 systems can cope with the "z" modifier?
> There should be a configure test to at least warn about it.
I think that patch is wrong, the GnuTLS API here usees 'unsigned int'
and not size_t.
Anyway, gnulib provides a better printf, although I wouldn't want us
to require it for the examples. We don't require that all users use
gnulib...
/Simon
More information about the Gnutls-devel
mailing list