gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] size_t, int and 64 bit machines


From: Simon Josefsson
Subject: Re: [gnutls-dev] size_t, int and 64 bit machines
Date: Wed, 21 Mar 2007 14:41:27 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

Werner Koch <address@hidden> writes:

> On Wed, 21 Mar 2007 04:22, address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]