From 2fe02c923ac197dbef092aed8c272ec60b93218b Mon Sep 17 00:00:00 2001 From: dyoung Date: Tue, 24 Apr 2007 23:43:50 +0000 Subject: [PATCH] Constify. --- sys/netinet/in_offload.c | 8 ++++---- sys/netinet/in_offload.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/netinet/in_offload.c b/sys/netinet/in_offload.c index c4f2690544b8..9aed6a50cd28 100644 --- a/sys/netinet/in_offload.c +++ b/sys/netinet/in_offload.c @@ -1,4 +1,4 @@ -/* $NetBSD: in_offload.c,v 1.1 2006/11/25 18:41:36 yamt Exp $ */ +/* $NetBSD: in_offload.c,v 1.2 2007/04/24 23:43:50 dyoung Exp $ */ /*- * Copyright (c)2005, 2006 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: in_offload.c,v 1.1 2006/11/25 18:41:36 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in_offload.c,v 1.2 2007/04/24 23:43:50 dyoung Exp $"); #include #include @@ -42,7 +42,7 @@ __KERNEL_RCSID(0, "$NetBSD: in_offload.c,v 1.1 2006/11/25 18:41:36 yamt Exp $"); struct ip_tso_output_args { struct ifnet *ifp; - struct sockaddr *sa; + const struct sockaddr *sa; struct rtentry *rt; }; @@ -58,7 +58,7 @@ ip_tso_output_callback(void *vp, struct mbuf *m) } int -ip_tso_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa, +ip_tso_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *sa, struct rtentry *rt) { struct ip_tso_output_args args; diff --git a/sys/netinet/in_offload.h b/sys/netinet/in_offload.h index fb924bbecf8c..6f64f3b18db1 100644 --- a/sys/netinet/in_offload.h +++ b/sys/netinet/in_offload.h @@ -1,4 +1,4 @@ -/* $NetBSD: in_offload.h,v 1.4 2006/11/25 18:41:36 yamt Exp $ */ +/* $NetBSD: in_offload.h,v 1.5 2007/04/24 23:43:50 dyoung Exp $ */ /*- * Copyright (c)2005, 2006 YAMAMOTO Takashi, @@ -34,7 +34,7 @@ */ int tcp4_segment(struct mbuf *, int (*)(void *, struct mbuf *), void *); -int ip_tso_output(struct ifnet *, struct mbuf *, struct sockaddr *, +int ip_tso_output(struct ifnet *, struct mbuf *, const struct sockaddr *, struct rtentry *); /*