Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Constify the source arg of m_copydata



details:   https://anonhg.NetBSD.org/src/rev/0bc0107e3881
branches:  trunk
changeset: 581811:0bc0107e3881
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jun 06 04:50:28 2005 +0000

description:
Constify the source arg of m_copydata

diffstat:

 sys/kern/uipc_mbuf.c |  6 +++---
 sys/sys/mbuf.h       |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 541a04b4b037 -r 0bc0107e3881 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Mon Jun 06 02:49:15 2005 +0000
+++ b/sys/kern/uipc_mbuf.c      Mon Jun 06 04:50:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.98 2005/06/02 15:48:11 explorer Exp $  */
+/*     $NetBSD: uipc_mbuf.c,v 1.99 2005/06/06 04:50:28 martin Exp $    */
 
 /*-
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.98 2005/06/02 15:48:11 explorer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.99 2005/06/06 04:50:28 martin Exp $");
 
 #include "opt_mbuftrace.h"
 
@@ -668,7 +668,7 @@
  * continuing for "len" bytes, into the indicated buffer.
  */
 void
-m_copydata(struct mbuf *m, int off, int len, void *vp)
+m_copydata(const struct mbuf *m, int off, int len, void *vp)
 {
        unsigned        count;
        caddr_t         cp = vp;
diff -r 541a04b4b037 -r 0bc0107e3881 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Mon Jun 06 02:49:15 2005 +0000
+++ b/sys/sys/mbuf.h    Mon Jun 06 04:50:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.110 2005/06/02 15:19:28 tron Exp $  */
+/*     $NetBSD: mbuf.h,v 1.111 2005/06/06 04:50:28 martin Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
@@ -833,7 +833,7 @@
 void   m_copyback(struct mbuf *, int, int, const void *);
 struct mbuf *m_copyback_cow(struct mbuf *, int, int, const void *, int);
 int    m_makewritable(struct mbuf **, int, int, int);
-void   m_copydata(struct mbuf *, int, int, void *);
+void   m_copydata(const struct mbuf *, int, int, void *);
 void   m_freem(struct mbuf *);
 void   m_reclaim(void *, int);
 void   mbinit(void);



Home | Main Index | Thread Index | Old Index