[uClibc] [PATCH] correct some inet data types
Erik Andersen
andersen at codepoet.org
Wed Oct 8 19:35:32 UTC 2003
On Fri Sep 26, 2003 at 11:42:07PM +0900, Atsushi Nemoto wrote:
> I found inappropriate data types are used in some places in networking
> codes.
>
> * tcp_seq is 32bit (u_long -> u_int32_t)
> * in_addt_t should be used for internet address (unsigned long -> in_addr_t)
> * socklen_t should be used for accept()
>
> This is a patch against uclibc-0.9.21 (can be applied for current
> CVS). 64bit platforms (sizeof(int)!=sizeof(long)) will need this. I
> believe this patch does not harm any 32bit platforms.
your patch looks fine to me. Applied,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list