Buggy sbspace() on 64bit builds?

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Feb 6 07:36:49 UTC 2015


--------
In message <D0F95E21.2489D%anshukla at juniper.net>, Anuranjan Shukla writes:

>Hi,
>The way sbspace() is done today, it stores the result of subtraction of
>socket buffer variables (u_int) in longs, and returns a long. [...]

>Any thoughts on what a fix should be for this?

size_t or intptr_t ?


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list