Module Name: src Committed By: dyoung Date: Thu Jul 8 00:12:35 UTC 2010
Modified Files: src/sys/netinet6: udp6_output.c Log Message: Sprinkle 'const' to prevent udp6_output() from reassigning all but one of its arguments. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/netinet6/udp6_output.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/udp6_output.c diff -u src/sys/netinet6/udp6_output.c:1.39 src/sys/netinet6/udp6_output.c:1.40 --- src/sys/netinet6/udp6_output.c:1.39 Wed May 6 21:41:59 2009 +++ src/sys/netinet6/udp6_output.c Thu Jul 8 00:12:35 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: udp6_output.c,v 1.39 2009/05/06 21:41:59 elad Exp $ */ +/* $NetBSD: udp6_output.c,v 1.40 2010/07/08 00:12:35 dyoung Exp $ */ /* $KAME: udp6_output.c,v 1.43 2001/10/15 09:19:52 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: udp6_output.c,v 1.39 2009/05/06 21:41:59 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp6_output.c,v 1.40 2010/07/08 00:12:35 dyoung Exp $"); #include "opt_inet.h" @@ -112,8 +112,9 @@ */ int -udp6_output(struct in6pcb *in6p, struct mbuf *m, struct mbuf *addr6, - struct mbuf *control, struct lwp *l) +udp6_output(struct in6pcb * const in6p, struct mbuf *m, + struct mbuf * const addr6, struct mbuf * const control, + struct lwp * const l) { struct rtentry *rt; u_int32_t ulen = m->m_pkthdr.len;