]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix const
authorRoy Marples <roy@marples.name>
Mon, 7 Jul 2014 09:36:17 +0000 (09:36 +0000)
committerRoy Marples <roy@marples.name>
Mon, 7 Jul 2014 09:36:17 +0000 (09:36 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 290ec09975b0b0582c5ca7e5029b5f59cf4a3e73..6c431cfddd630e5e01f810de35ceee8dbd0eb936 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -1820,7 +1820,7 @@ dhcp6_findia(struct interface *ifp, const struct dhcp6_message *m, size_t l,
                ap->flags |= IPV6_AF_STALE;
        }
        l -= sizeof(*m);
-       for (o = D6_FIRST_OPTION(m); l > sizeof(*o); o = D6_NEXT_OPTION(o)) {
+       for (o = D6_CFIRST_OPTION(m); l > sizeof(*o); o = D6_CNEXT_OPTION(o)) {
                ol = ntohs(o->len);
                if (sizeof(*o) + ol > l) {
                        errno = EINVAL;