]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix build without INET.
authorRoy Marples <roy@marples.name>
Wed, 24 Jul 2019 18:42:00 +0000 (19:42 +0100)
committerRoy Marples <roy@marples.name>
Wed, 24 Jul 2019 18:42:00 +0000 (19:42 +0100)
src/dhcpcd.c
src/script.c

index cd0b0df1680253b12835d754e965bbfffc653d47..31267ab344adb1849aa5f171594f551e0eb0ac57 100644 (file)
@@ -1210,9 +1210,11 @@ dhcpcd_handlehwaddr(struct dhcpcd_ctx *ctx, const char *ifname,
 static void
 if_reboot(struct interface *ifp, int argc, char **argv)
 {
+#ifdef INET
        unsigned long long oldopts;
 
        oldopts = ifp->options->options;
+#endif
        script_runreason(ifp, "RECONFIGURE");
        dhcpcd_initstate1(ifp, argc, argv, 0);
 #ifdef INET
index 9c362ae9c5b44661669f794eab2224d51cdf89eb..1863a66166eaf57dcfd27e943c8e8b993b95376d 100644 (file)
@@ -180,7 +180,7 @@ make_env(const struct interface *ifp, const char *reason)
        char **env, **envp, *buf, *bufp, *endp, *path;
        size_t nenv;
        long buf_pos, i;
-       int protocol;
+       int protocol = PROTO_LINK;
        const struct if_options *ifo = ifp->options;
        const struct interface *ifp2;
        int af;