From abd02d7387069439373d40c2f9afba93c76df650 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 8 Oct 2003 19:35:20 +0000 Subject: Atsushi Nemoto writes: 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. --- include/netinet/ip_tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/netinet') diff --git a/include/netinet/ip_tcp.h b/include/netinet/ip_tcp.h index 39111f275..600aebc1c 100644 --- a/include/netinet/ip_tcp.h +++ b/include/netinet/ip_tcp.h @@ -24,7 +24,7 @@ #include #include -typedef u_long tcp_seq; +typedef u_int32_t tcp_seq; /* * TCP header. * Per RFC 793, September, 1981. -- cgit v1.2.3