Mercurial > nand-ecoscentric
changeset 2208:0c3488465ccf
* tests/dns1.c (dns_test_thread): Use CYG_NELEM from infra.
| author | asl |
|---|---|
| date | Fri, 19 May 2006 10:14:33 +0000 |
| parents | 9f901b4004b8 |
| children | b2a26dbe68a2 |
| files | packages/net/ns/dns/current/ChangeLog packages/net/ns/dns/current/tests/dns1.c |
| diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/ns/dns/current/ChangeLog +++ b/packages/net/ns/dns/current/ChangeLog @@ -1,3 +1,7 @@ +2006-05-19 Andrew Lunn <andrew.lunn@ascom.ch> + + * tests/dns1.c (dns_test_thread): Use CYG_NELEM from infra. + 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch> * src/dns.c Various casts and type fixes to stop gcc 4 warnings.
--- a/packages/net/ns/dns/current/tests/dns1.c +++ b/packages/net/ns/dns/current/tests/dns1.c @@ -67,8 +67,6 @@ static char stack[STACK_SIZE]; static cyg_thread thread_data; static cyg_handle_t thread_handle; -#define NELEM(x) (sizeof(x) / sizeof(x[0])) - struct test_info_s { char * dns_server_v4; char * dns_server_v6; @@ -908,7 +906,7 @@ dns_test_thread(cyg_addrword_t p) CYG_TEST_INFO("Starting dns1 test"); - for (i = 0; i < NELEM(test_info); i++) { + for (i = 0; i < CYG_NELEM(test_info); i++) { dns_test(&test_info[i]); }
