Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Use const for arguments to sctp_is_same_scope().
details: https://anonhg.NetBSD.org/src/rev/9f05846c5086
branches: trunk
changeset: 345374:9f05846c5086
user: rjs <rjs%NetBSD.org@localhost>
date: Sun May 22 23:04:27 2016 +0000
description:
Use const for arguments to sctp_is_same_scope().
diffstat:
sys/netinet/sctputil.c | 6 +++---
sys/netinet/sctputil.h | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r ce2c270a960a -r 9f05846c5086 sys/netinet/sctputil.c
--- a/sys/netinet/sctputil.c Sun May 22 22:18:41 2016 +0000
+++ b/sys/netinet/sctputil.c Sun May 22 23:04:27 2016 +0000
@@ -1,5 +1,5 @@
/* $KAME: sctputil.c,v 1.39 2005/06/16 20:54:06 jinmei Exp $ */
-/* $NetBSD: sctputil.c,v 1.7 2016/05/12 02:24:17 ozaki-r Exp $ */
+/* $NetBSD: sctputil.c,v 1.8 2016/05/22 23:04:27 rjs Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Cisco Systems, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sctputil.c,v 1.7 2016/05/12 02:24:17 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sctputil.c,v 1.8 2016/05/22 23:04:27 rjs Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2959,7 +2959,7 @@
* so, create this function to compare link local scopes
*/
uint32_t
-sctp_is_same_scope(struct sockaddr_in6 *addr1, struct sockaddr_in6 *addr2)
+sctp_is_same_scope(const struct sockaddr_in6 *addr1, const struct sockaddr_in6 *addr2)
{
struct sockaddr_in6 a, b;
diff -r ce2c270a960a -r 9f05846c5086 sys/netinet/sctputil.h
--- a/sys/netinet/sctputil.h Sun May 22 22:18:41 2016 +0000
+++ b/sys/netinet/sctputil.h Sun May 22 23:04:27 2016 +0000
@@ -1,5 +1,5 @@
/* $KAME: sctputil.h,v 1.15 2005/03/06 16:04:19 itojun Exp $ */
-/* $NetBSD: sctputil.h,v 1.1 2015/10/13 21:28:35 rjs Exp $ */
+/* $NetBSD: sctputil.h,v 1.2 2016/05/22 23:04:27 rjs Exp $ */
#ifndef __SCTPUTIL_H__
#define __SCTPUTIL_H__
@@ -190,7 +190,8 @@
struct sctp_inpcb *, struct mbuf *);
int sctp_is_there_an_abort_here(struct mbuf *, int, int *);
-uint32_t sctp_is_same_scope(struct sockaddr_in6 *, struct sockaddr_in6 *);
+uint32_t sctp_is_same_scope(const struct sockaddr_in6 *,
+ const struct sockaddr_in6 *);
const struct sockaddr_in6 *sctp_recover_scope(const struct sockaddr_in6 *,
struct sockaddr_in6 *);
Home |
Main Index |
Thread Index |
Old Index