Module Name: src Committed By: dyoung Date: Thu Jul 8 01:13:01 UTC 2010
Modified Files: src/sys/netinet6: raw_ip6.c Log Message: Sprinkle const to prevent rip6_output() from re-assigning all but one of its arguments. To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/sys/netinet6/raw_ip6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet6/raw_ip6.c diff -u src/sys/netinet6/raw_ip6.c:1.105 src/sys/netinet6/raw_ip6.c:1.106 --- src/sys/netinet6/raw_ip6.c:1.105 Wed Sep 16 15:23:05 2009 +++ src/sys/netinet6/raw_ip6.c Thu Jul 8 01:13:01 2010 @@ -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;