Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2018 20:54:29 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334672 - head/sys/netinet6
Message-ID:  <201806052054.w55KsTt5006895@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: ae
Date: Tue Jun  5 20:54:29 2018
New Revision: 334672
URL: https://svnweb.freebsd.org/changeset/base/334672

Log:
  Constify argument of in6_getscope().

Modified:
  head/sys/netinet6/scope6.c
  head/sys/netinet6/scope6_var.h

Modified: head/sys/netinet6/scope6.c
==============================================================================
--- head/sys/netinet6/scope6.c	Tue Jun  5 20:51:01 2018	(r334671)
+++ head/sys/netinet6/scope6.c	Tue Jun  5 20:54:29 2018	(r334672)
@@ -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))

Modified: head/sys/netinet6/scope6_var.h
==============================================================================
--- head/sys/netinet6/scope6_var.h	Tue Jun  5 20:51:01 2018	(r334671)
+++ head/sys/netinet6/scope6_var.h	Tue Jun  5 20:54:29 2018	(r334672)
@@ -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);



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201806052054.w55KsTt5006895>