diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2018-06-05 20:54:29 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2018-06-05 20:54:29 +0000 |
commit | 73ae9758a178dfa68ef27f654a47f6fdad824c06 (patch) | |
tree | 96e859109e3662364a8435391abe807f2215e8ae | |
parent | 6d8fdfa9d5e7d4871c5039b0131829f9cbefeee9 (diff) | |
download | src-73ae9758a178dfa68ef27f654a47f6fdad824c06.tar.gz src-73ae9758a178dfa68ef27f654a47f6fdad824c06.zip |
Constify argument of in6_getscope().
Notes
Notes:
svn path=/head/; revision=334672
-rw-r--r-- | sys/netinet6/scope6.c | 2 | ||||
-rw-r--r-- | sys/netinet6/scope6_var.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/scope6.c b/sys/netinet6/scope6.c index cc8e25e509b8..3f65e3765efb 100644 --- a/sys/netinet6/scope6.c +++ b/sys/netinet6/scope6.c @@ -453,7 +453,7 @@ in6_clearscope(struct in6_addr *in6) * Return the scope identifier or zero. */ uint16_t -in6_getscope(struct in6_addr *in6) +in6_getscope(const struct in6_addr *in6) { if (IN6_IS_SCOPE_LINKLOCAL(in6) || IN6_IS_ADDR_MC_INTFACELOCAL(in6)) diff --git a/sys/netinet6/scope6_var.h b/sys/netinet6/scope6_var.h index a2a9137dad37..f4e59a1920c1 100644 --- a/sys/netinet6/scope6_var.h +++ b/sys/netinet6/scope6_var.h @@ -63,7 +63,7 @@ int sa6_checkzone(struct sockaddr_in6 *); int sa6_checkzone_ifp(struct ifnet *, struct sockaddr_in6 *); int in6_setscope(struct in6_addr *, struct ifnet *, u_int32_t *); int in6_clearscope(struct in6_addr *); -uint16_t in6_getscope(struct in6_addr *); +uint16_t in6_getscope(const struct in6_addr *); uint32_t in6_getscopezone(const struct ifnet *, int); void in6_splitscope(const struct in6_addr *, struct in6_addr *, uint32_t *); struct ifnet* in6_getlinkifnet(uint32_t); |