changeset 2562:d1611088a5e2 draft

Fix some more compiler errors
author Roy Marples <roy@marples.name>
date Wed, 02 Jul 2014 11:42:08 +0000
parents bc1d537e9d8b
children 51820d3bf476
files dhcpcd.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Wed Jul 02 11:20:04 2014 +0000
+++ b/dhcpcd.c	Wed Jul 02 11:42:08 2014 +0000
@@ -323,7 +323,9 @@
 {
 	struct if_options *ifo = ifp->options;
 	int ra_global, ra_iface;
+#ifdef INET6
 	size_t i;
+#endif
 
 	/* Do any platform specific configuration */
 	if_conf(ifp);
@@ -608,7 +610,7 @@
 	char buf[DUID_LEN * 3];
 
 	pre_start(ifp);
-	if (!if_up(ifp) == -1)
+	if (if_up(ifp) == -1)
 		syslog(LOG_ERR, "%s: if_up: %m", ifp->name);
 
 	if (ifp->carrier == LINK_DOWN && ifo->options & DHCPCD_LINK) {