Mercurial > nand-ecoscentric
changeset 2050:03eae11c9443
* 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
| author | asl |
|---|---|
| date | Wed, 03 Aug 2005 20:51:21 +0000 |
| parents | 12aa3f2a1f4d |
| children | 6ffd8d86a3bd |
| files | packages/net/common/current/ChangeLog packages/net/common/current/tests/multi_lo_select.c packages/net/common/current/tests/ping_lo_test.c packages/net/common/current/tests/tcp_lo_select.c packages/net/common/current/tests/tcp_lo_test.c packages/net/common/current/tests/udp_lo_test.c |
| diffstat | 6 files changed, 14 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/common/current/ChangeLog +++ b/packages/net/common/current/ChangeLog @@ -1,3 +1,11 @@ +2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch> + + * 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 <andrew.lunn@ascom.ch> * src/tftp_dummy_file.c: unsigned char when needed to prevent warnings.
--- 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?
--- 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;
--- 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";
--- 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:");
