svn commit: r197432 -
head/tools/regression/sockets/accf_data_attach
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Sep 24 07:40:25 UTC 2009
On Wed, Sep 23, 2009 at 02:23:09PM +0000, John Baldwin wrote:
> Author: jhb
> Date: Wed Sep 23 14:23:09 2009
> New Revision: 197432
> URL: http://svn.freebsd.org/changeset/base/197432
>
> Log:
> - Remove a bogus test: setsockopt() doesn't return a length, getsockopt()
> does.
> - Use %z to printf a size_t to fix compile on 64-bit platforms.
[...]
> - "listen() returned wrong size (got %d expected %d)", len,
> + "listen() returned wrong size (got %d expected %zd)", len,
> sizeof(afa));
Actually, you want %zu for size_t. %zd is for ssize_t (which is signed).
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20090924/b18f7b45/attachment.pgp
More information about the svn-src-head
mailing list