]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Constify handlert
authorRoy Marples <roy@marples.name>
Fri, 8 Apr 2016 06:54:43 +0000 (06:54 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Apr 2016 06:54:43 +0000 (06:54 +0000)
ipv4.c
ipv4.h
ipv4ll.h
ipv6.c
ipv6.h

diff --git a/ipv4.c b/ipv4.c
index 18a423094dfc7606332e37f08b8e08d5ab9e547a..33768dc0dcb63509759b3e7ba0bb3b5fd476323e 100644 (file)
--- 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 5e9f0682db6a01403575f158ae4e2f2d7c4927e8..ec6489b0d4e3c6fb7506b93a4264265ec5573796 100644 (file)
--- 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 *,
index 8f87401c60e514f5683159cdc0d70a15c39cb74e..fe5e70d75dff54074fd961b2a781ab3aca239e6e 100644 (file)
--- 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 d5755342ae85ccc78c5abfa76a8be033a9046643..1c16e08a9ab9b89a998a3e3a55dd8377b92f080a 100644 (file)
--- 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 33a620d05c22f5a1515e826aeaf04a9d22b94807..0eee0dae8fb192ee104dc3d6e1fa6a2ddafaab0e 100644 (file)
--- 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 *);