From: Roy Marples Date: Thu, 5 Jan 2023 11:17:12 +0000 (+0000) Subject: dhcp: Remove bootp arg from rt 3442 decoding X-Git-Tag: v10.0.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c646874789156caab4fd87229d8c2c6a50a51db;p=thirdparty%2Fdhcpcd.git dhcp: Remove bootp arg from rt 3442 decoding Fixes a compile warning. Addendum to #161. --- diff --git a/src/dhcp.c b/src/dhcp.c index 1569a6d4..233bd107 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -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);