changeset 295:f41945c6ee87 draft

inet_aton returns 1 for success
author Roy Marples <roy@marples.name>
date Mon, 21 Jan 2008 15:10:46 +0000
parents c912c9885edf
children d2eb4610ac12
files configure.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.c	Thu Jan 17 18:49:26 2008 +0000
+++ b/configure.c	Mon Jan 21 15:10:46 2008 +0000
@@ -256,7 +256,7 @@
 	} else {
 		while (tomatch != 0 && (line = getline (f))) {
 			struct in_addr addr;
-			
+
 			a = line;
 			token = strsep (&a, " ");
 			if (! token || strcmp (token, "server") != 0)
@@ -265,7 +265,7 @@
 			if ((token = strsep (&a, " \n")) == NULL)
 				goto next;
 
-			if (inet_aton (token, &addr) == 0 &&
+			if (inet_aton (token, &addr) == 1 &&
 			    in_addresses (dhcp->ntpservers, addr))
 				tomatch--;