]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile without INET or INET6.
authorRoy Marples <roy@marples.name>
Thu, 13 Feb 2014 08:15:05 +0000 (08:15 +0000)
committerRoy Marples <roy@marples.name>
Thu, 13 Feb 2014 08:15:05 +0000 (08:15 +0000)
dhcp6.h
ipv4.h
ipv6.h
ipv6nd.h

diff --git a/dhcp6.h b/dhcp6.h
index a7d873cd0e13eee61c69d878337a739570c6275b..949154fea49251f0118322bf3f351cfb5d1761e4 100644 (file)
--- a/dhcp6.h
+++ b/dhcp6.h
@@ -240,9 +240,9 @@ void dhcp6_handleifa(struct dhcpcd_ctx *, int, const char *,
 void dhcp6_drop(struct interface *, const char *);
 #else
 #define dhcp6_printoptions()
-#define dhcp6_addrexists(a) 0
-#define dhcp6_find_delegates(a) 0
-#define dhcp6_start(a, b) 0
+#define dhcp6_addrexists(a, b) (0)
+#define dhcp6_find_delegates(a) (0)
+#define dhcp6_start(a, b) (0)
 #define dhcp6_reboot(a)
 #define dhcp6_env(a, b, c, d, e)
 #define dhcp6_free(a)
diff --git a/ipv4.h b/ipv4.h
index 1fda9ba665a0d2ebabcc1631d45b62c67d4ff638..7ac93448b99b28ea8665fce77d1966d881b82861 100644 (file)
--- a/ipv4.h
+++ b/ipv4.h
@@ -98,12 +98,12 @@ ssize_t ipv4_getrawpacket(struct interface *, int, void *, ssize_t, int *);
 void ipv4_free(struct interface *);
 void ipv4_ctxfree(struct dhcpcd_ctx *);
 #else
-#define ipv4_init() (-1)
+#define ipv4_init(a) (-1)
 #define ipv4_applyaddr(a) {}
 #define ipv4_freeroutes(a) {}
 #define ipv4_free(a) {}
 #define ipv4_ctxfree(a) {}
-#define ipv4_addrexists(a) (0)
+#define ipv4_addrexists(a, b) (0)
 #endif
 
 #endif
diff --git a/ipv6.h b/ipv6.h
index b070696e49225acb38614c1029b270fcbaaf4b2a..5089d644b32b8226c324cc55efc18b1c83227064 100644 (file)
--- a/ipv6.h
+++ b/ipv6.h
@@ -201,7 +201,7 @@ int if_route6(const struct rt6 *rt, int);
 #define del_src_route6(rt) if_route6(rt, -2);
 
 #else
-#define ipv6_init() -1
+#define ipv6_init(a) NULL
 #define ipv6_free_ll_callbacks(a)
 #define ipv6_free(a)
 #define ipv6_ctxfree(a)
index cc66f65b03db25e9d14f2ebe0e7ee8335197a121..31252e84b28b6b369c61475b7746348f10b0b064 100644 (file)
--- a/ipv6nd.h
+++ b/ipv6nd.h
@@ -107,9 +107,9 @@ void ipv6nd_cancelprobeaddr(struct ipv6_addr *);
 
 #else
 #define ipv6nd_startrs(a) {}
-#define ipv6nd_addrexists(a) (0)
+#define ipv6nd_addrexists(a, b) (0)
 #define ipv6nd_free(a)
-#define ipv6nd_has_ra(a) 0
+#define ipv6nd_has_ra(a) (0)
 #define ipv6nd_drop(a)
 #endif