Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Sprinkle const to prevent rip6_output() from re...
details: https://anonhg.NetBSD.org/src/rev/17795fb34b0a
branches: trunk
changeset: 756173:17795fb34b0a
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Jul 08 01:13:01 2010 +0000
description:
Sprinkle const to prevent rip6_output() from re-assigning all but one of
its arguments.
diffstat:
sys/netinet6/raw_ip6.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 203283b88832 -r 17795fb34b0a sys/netinet6/raw_ip6.c
--- a/sys/netinet6/raw_ip6.c Thu Jul 08 01:05:09 2010 +0000
+++ b/sys/netinet6/raw_ip6.c Thu Jul 08 01:13:01 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip6.c,v 1.105 2009/09/16 15:23:05 pooka Exp $ */
+/* $NetBSD: raw_ip6.c,v 1.106 2010/07/08 01:13:01 dyoung Exp $ */
/* $KAME: raw_ip6.c,v 1.82 2001/07/23 18:57:56 jinmei Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.105 2009/09/16 15:23:05 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.106 2010/07/08 01:13:01 dyoung Exp $");
#include "opt_ipsec.h"
@@ -396,8 +396,8 @@
* Tack on options user may have setup with control call.
*/
int
-rip6_output(struct mbuf *m, struct socket *so, struct sockaddr_in6 *dstsock,
- struct mbuf *control)
+rip6_output(struct mbuf *m, struct socket * const so,
+ struct sockaddr_in6 * const dstsock, struct mbuf * const control)
{
struct in6_addr *dst;
struct ip6_hdr *ip6;
Home |
Main Index |
Thread Index |
Old Index