[ECOS] Typo in dns.c

Andrew Lunn andrew@lunn.ch
Tue Jul 13 07:19:00 GMT 2004


On Tue, Jul 13, 2004 at 07:04:43AM +0100, Andy Jackson wrote:
> Using a recent snapshot, last night I tried compiling a library with tracing
> enabled and it failed in
> 
> net\ns\dns\current\src\dns.c at line 591.
> 
> It looks like a simple typo and everything seemed to compile after the
> obvious change.
> 
>     if (s < 0) {
>         CYG_REPORT_RETVAL( -EIA_FAIL );                // Should be
> EAI_FAIL?
>         return -EAI_FAIL;
>     }

Thanks for the report. Attached is the fix i jsut commited to CVS.

        Thanks
                Andrew


-------------- next part --------------
Index: net/ns/dns/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ns/dns/current/ChangeLog,v
retrieving revision 1.17
diff -u -r1.17 ChangeLog
--- net/ns/dns/current/ChangeLog	23 Sep 2003 09:10:59 -0000	1.17
+++ net/ns/dns/current/ChangeLog	13 Jul 2004 07:17:56 -0000
@@ -1,3 +1,7 @@
+2004-07-13  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/dns.c (cyg_dns_getaddrinfo): Typo spotted by Andy Jackson.
+
 2003-09-04  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* cdl/dns.cdl: CDL control of what DNS server to use for the tests
Index: net/ns/dns/current/src/dns.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/ns/dns/current/src/dns.c,v
retrieving revision 1.7
diff -u -r1.7 dns.c
--- net/ns/dns/current/src/dns.c	24 Jun 2003 05:10:56 -0000	1.7
+++ net/ns/dns/current/src/dns.c	13 Jul 2004 07:17:58 -0000
@@ -588,7 +588,7 @@
     
     /* Has the socket to the DNS server been opened? */
     if (s < 0) {
-        CYG_REPORT_RETVAL( -EIA_FAIL );
+        CYG_REPORT_RETVAL( -EAI_FAIL );
         return -EAI_FAIL;
     }
     

-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list