From: Roy Marples Date: Fri, 8 Apr 2016 06:54:43 +0000 (+0000) Subject: Constify handlert X-Git-Tag: v6.10.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=526bcfe474c80345dad26486366cc2ffb4f7044a;p=thirdparty%2Fdhcpcd.git Constify handlert --- diff --git a/ipv4.c b/ipv4.c index 18a42309..33768dc0 100644 --- a/ipv4.c +++ b/ipv4.c @@ -422,7 +422,7 @@ ipv4_freerts(struct rt_head *routes) /* If something other than dhcpcd removes a route, * we need to remove it from our internal table. */ int -ipv4_handlert(struct dhcpcd_ctx *ctx, int cmd, struct rt *rt) +ipv4_handlert(struct dhcpcd_ctx *ctx, int cmd, const struct rt *rt) { struct rt *f; diff --git a/ipv4.h b/ipv4.h index 5e9f0682..ec6489b0 100644 --- a/ipv4.h +++ b/ipv4.h @@ -114,7 +114,7 @@ int ipv4_preferanother(struct interface *); struct ipv4_addr *ipv4_addaddr(struct interface *, const struct in_addr *, const struct in_addr *, const struct in_addr *); void ipv4_applyaddr(void *); -int ipv4_handlert(struct dhcpcd_ctx *, int, struct rt *); +int ipv4_handlert(struct dhcpcd_ctx *, int, const struct rt *); void ipv4_freerts(struct rt_head *); struct ipv4_addr *ipv4_iffindaddr(struct interface *, diff --git a/ipv4ll.h b/ipv4ll.h index 8f87401c..fe5e70d7 100644 --- a/ipv4ll.h +++ b/ipv4ll.h @@ -65,6 +65,7 @@ ssize_t ipv4ll_env(char **, const char *, const struct interface *); void ipv4ll_start(void *); void ipv4ll_claimed(void *); void ipv4ll_handle_failure(void *); +int ipv4ll_handlert(struct dhcpcd_ctx *, int, struct rt *); #define ipv4ll_free(ifp) ipv4ll_freedrop((ifp), 0); #define ipv4ll_drop(ifp) ipv4ll_freedrop((ifp), 1); diff --git a/ipv6.c b/ipv6.c index d5755342..1c16e08a 100644 --- a/ipv6.c +++ b/ipv6.c @@ -1997,7 +1997,7 @@ ipv6_freerts(struct rt6_head *routes) /* If something other than dhcpcd removes a route, * we need to remove it from our internal table. */ int -ipv6_handlert(struct dhcpcd_ctx *ctx, int cmd, struct rt6 *rt) +ipv6_handlert(struct dhcpcd_ctx *ctx, int cmd, const struct rt6 *rt) { struct rt6 *f; diff --git a/ipv6.h b/ipv6.h index 33a620d0..0eee0dae 100644 --- a/ipv6.h +++ b/ipv6.h @@ -315,7 +315,7 @@ int ipv6_staticdadcompleted(const struct interface *); int ipv6_startstatic(struct interface *); ssize_t ipv6_env(char **, const char *, const struct interface *); void ipv6_ctxfree(struct dhcpcd_ctx *); -int ipv6_handlert(struct dhcpcd_ctx *, int cmd, struct rt6 *); +int ipv6_handlert(struct dhcpcd_ctx *, int cmd, const struct rt6 *); void ipv6_freerts(struct rt6_head *); void ipv6_buildroutes(struct dhcpcd_ctx *);