# HG changeset patch # User asl # Date 1123102281 0 # Node ID 03eae11c9443d91e52033dd67eafb55530fa3bf0 # Parent 12aa3f2a1f4d63475d7c2ab22da8016d86689e60 * tests/ping_lo_test.c (ping_host): Use socklen_t to avoid compiler warnings. * tests/tcp_lo_test.c (server): Ditto * tests/udp_lo_test.c (server): Ditto * tests/tcp_lo_select.c (server): Ditto diff --git a/packages/net/common/current/ChangeLog b/packages/net/common/current/ChangeLog --- a/packages/net/common/current/ChangeLog +++ b/packages/net/common/current/ChangeLog @@ -1,3 +1,11 @@ +2005-08-02 Andrew Lunn + + * tests/ping_lo_test.c (ping_host): Use socklen_t to avoid + compiler warnings. + * tests/tcp_lo_test.c (server): Ditto + * tests/udp_lo_test.c (server): Ditto + * tests/tcp_lo_select.c (server): Ditto + 2005-07-29 Andrew Lunn * src/tftp_dummy_file.c: unsigned char when needed to prevent warnings. diff --git a/packages/net/common/current/tests/multi_lo_select.c b/packages/net/common/current/tests/multi_lo_select.c --- a/packages/net/common/current/tests/multi_lo_select.c +++ b/packages/net/common/current/tests/multi_lo_select.c @@ -200,7 +200,7 @@ void listener( cyg_addrword_t which ) int s_s1 = -1, e_s1 = 0, s_s2 = -1, e_s2 = 0; struct sockaddr_in e_s1_addr,e_s2_addr,local; fd_set in_fds; - int len; + socklen_t len; int num; // do we select on multiple sources? diff --git a/packages/net/common/current/tests/ping_lo_test.c b/packages/net/common/current/tests/ping_lo_test.c --- a/packages/net/common/current/tests/ping_lo_test.c +++ b/packages/net/common/current/tests/ping_lo_test.c @@ -137,7 +137,8 @@ ping_host(int s, struct sockaddr_in *hos cyg_tick_count_t *tp; long *dp; struct sockaddr_in from; - int i, len, fromlen; + int i, len; + socklen_t fromlen; ok_recv = 0; bogus_recv = 0; diff --git a/packages/net/common/current/tests/tcp_lo_select.c b/packages/net/common/current/tests/tcp_lo_select.c --- a/packages/net/common/current/tests/tcp_lo_select.c +++ b/packages/net/common/current/tests/tcp_lo_select.c @@ -77,7 +77,7 @@ void server(void) int s_s1, e_s1, s_s2, e_s2; struct sockaddr_in e_s1_addr,e_s2_addr,local; fd_set in_fds; - int len; + socklen_t len; int num; char *hello_string=" Hello eCos network \n"; diff --git a/packages/net/common/current/tests/tcp_lo_test.c b/packages/net/common/current/tests/tcp_lo_test.c --- a/packages/net/common/current/tests/tcp_lo_test.c +++ b/packages/net/common/current/tests/tcp_lo_test.c @@ -62,7 +62,7 @@ void server(void) struct sockaddr_in e_source_addr, local; int one = 1; fd_set in_fds; - int len; + socklen_t len; char *hello_string=" Hello eCos network \n"; diag_printf("TCP SERVER:"); diff --git a/packages/net/common/current/tests/udp_lo_test.c b/packages/net/common/current/tests/udp_lo_test.c --- a/packages/net/common/current/tests/udp_lo_test.c +++ b/packages/net/common/current/tests/udp_lo_test.c @@ -60,7 +60,7 @@ void server(void) { int s_source; struct sockaddr_in local,c_addr; - int c_len; + socklen_t c_len; int len; char *hello_string=" Hello eCos network \n";