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 udp6_output() from ...
details: https://anonhg.NetBSD.org/src/rev/12dae7ad444a
branches: trunk
changeset: 756169:12dae7ad444a
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Jul 08 00:12:35 2010 +0000
description:
Sprinkle 'const' to prevent udp6_output() from reassigning all but one
of its arguments.
diffstat:
sys/netinet6/udp6_output.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r d50e13d6d82b -r 12dae7ad444a sys/netinet6/udp6_output.c
--- a/sys/netinet6/udp6_output.c Thu Jul 08 00:03:31 2010 +0000
+++ b/sys/netinet6/udp6_output.c Thu Jul 08 00:12:35 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index