]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dhcp: Remove bootp arg from rt 3442 decoding
authorRoy Marples <roy@marples.name>
Thu, 5 Jan 2023 11:17:12 +0000 (11:17 +0000)
committerRoy Marples <roy@marples.name>
Thu, 5 Jan 2023 11:17:12 +0000 (11:17 +0000)
Fixes a compile warning. Addendum to #161.

src/dhcp.c

index 1569a6d49281967602646729c7375c94ceb8a4cb..233bd10736d4a7a7ba8f5ec5e00b2c912714c5ec 100644 (file)
@@ -395,7 +395,7 @@ print_rfc3442(FILE *fp, const uint8_t *data, size_t data_len)
 
 static int
 decode_rfc3442_rt(rb_tree_t *routes, struct interface *ifp,
-    const uint8_t *data, size_t dl, const struct bootp *bootp)
+    const uint8_t *data, size_t dl)
 {
        const uint8_t *p = data;
        const uint8_t *e;
@@ -580,7 +580,7 @@ get_option_routes(rb_tree_t *routes, struct interface *ifp,
                if (p)
                        csr = "MS ";
        }
-       if (p && (n = decode_rfc3442_rt(routes, ifp, p, len, bootp)) != -1) {
+       if (p && (n = decode_rfc3442_rt(routes, ifp, p, len)) != -1) {
                const struct dhcp_state *state;
 
                state = D_CSTATE(ifp);