Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Constify some ether_output() arguments so that it's ...
details: https://anonhg.NetBSD.org/src/rev/76c3f1b2ed9b
branches: trunk
changeset: 754602:76c3f1b2ed9b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed May 05 18:12:24 2010 +0000
description:
Constify some ether_output() arguments so that it's clear that they
can never be re-assigned.
diffstat:
sys/net/if_ethersubr.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 485163367f9e -r 76c3f1b2ed9b sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Wed May 05 17:42:19 2010 +0000
+++ b/sys/net/if_ethersubr.c Wed May 05 18:12:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.177 2010/04/05 07:22:23 joerg Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.178 2010/05/05 18:12:24 dyoung Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.177 2010/04/05 07:22:23 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.178 2010/05/05 18:12:24 dyoung Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@@ -198,7 +198,8 @@
* Assumes that ifp is actually pointer to ethercom structure.
*/
static int
-ether_output(struct ifnet *ifp0, struct mbuf *m0, const struct sockaddr *dst,
+ether_output(struct ifnet * const ifp0, struct mbuf * const m0,
+ const struct sockaddr * const dst,
struct rtentry *rt0)
{
uint16_t etype = 0;
Home |
Main Index |
Thread Index |
Old Index