[zeromq-dev] Error: comparison between signed and unsigned integer expressions

Steven McCoy steven.mccoy at miru.hk
Thu Jul 5 15:12:02 CEST 2012


On 5 July 2012 06:09, Ivan Pechorin <ivan.pechorin at gmail.com> wrote:

> Android NDK has the following typedef:
>
> typedef int socklen_t
>
> I wonder why they choose to go against UNIX specs that require socklen_t
> to be unsigned (see
> http://pubs.opengroup.org/onlinepubs/7908799/xns/syssocket.h.html)
>

It appears to be a BSD trait,here's a rather moody article about it:

http://everything2.com/title/socklen_t

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120705/9de6415e/attachment.htm>


More information about the zeromq-dev mailing list