summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-05-31 17:48:07 +0000
committerpeter <peter@FreeBSD.org>1998-05-31 17:48:07 +0000
commitcbeeaf83f285b6b7ce0aa7026de037ac83a9ea73 (patch)
tree629a390b369e745d263588ce6035ad83850d6763 /sys/nfsserver
parente58631da3c81e111dd78b54402762f8f6875aa62 (diff)
downloadFreeBSD-src-cbeeaf83f285b6b7ce0aa7026de037ac83a9ea73.zip
FreeBSD-src-cbeeaf83f285b6b7ce0aa7026de037ac83a9ea73.tar.gz
Some const's
Obtained from: NetBSD
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs.h4
-rw-r--r--sys/nfsserver/nfs_srvsubs.c4
-rw-r--r--sys/nfsserver/nfsm_subs.h4
-rw-r--r--sys/nfsserver/nfsrvstats.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h
index a2fac06..ec0d530 100644
--- a/sys/nfsserver/nfs.h
+++ b/sys/nfsserver/nfs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.36 1998/05/24 14:41:47 peter Exp $
+ * $Id: nfs.h,v 1.37 1998/05/31 17:27:45 peter Exp $
*/
#ifndef _NFS_NFS_H_
@@ -640,7 +640,7 @@ void nfsrv_cleancache __P((void));
int nfs_connect __P((struct nfsmount *, struct nfsreq *));
void nfs_disconnect __P((struct nfsmount *));
int nfs_getattrcache __P((struct vnode *, struct vattr *));
-int nfsm_strtmbuf __P((struct mbuf **, char **, char *, long));
+int nfsm_strtmbuf __P((struct mbuf **, char **, const char *, long));
int nfs_bioread __P((struct vnode *, struct uio *, int, struct ucred *,
int));
int nfsm_uiotombuf __P((struct uio *, struct mbuf **, int, caddr_t *));
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c
index 27cece4..dcc64b0 100644
--- a/sys/nfsserver/nfs_srvsubs.c
+++ b/sys/nfsserver/nfs_srvsubs.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
- * $Id: nfs_subs.c,v 1.55 1998/05/24 14:41:53 peter Exp $
+ * $Id: nfs_subs.c,v 1.56 1998/05/31 17:27:50 peter Exp $
*/
/*
@@ -1031,7 +1031,7 @@ int
nfsm_strtmbuf(mb, bpos, cp, siz)
struct mbuf **mb;
char **bpos;
- char *cp;
+ const char *cp;
long siz;
{
register struct mbuf *m1 = 0, *m2;
diff --git a/sys/nfsserver/nfsm_subs.h b/sys/nfsserver/nfsm_subs.h
index c8176c9..d6bdc63 100644
--- a/sys/nfsserver/nfsm_subs.h
+++ b/sys/nfsserver/nfsm_subs.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
- * $Id: nfsm_subs.h,v 1.16 1998/05/16 15:11:24 bde Exp $
+ * $Id: nfsm_subs.h,v 1.17 1998/05/31 17:27:57 peter Exp $
*/
@@ -317,7 +317,7 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
nfsm_build(tl,u_long *,t2); \
*tl++ = txdr_unsigned(s); \
*(tl+((t2>>2)-2)) = 0; \
- bcopy((caddr_t)(a), (caddr_t)tl, (s)); \
+ bcopy((const char *)(a), (caddr_t)tl, (s)); \
} else if ((t2 = nfsm_strtmbuf(&mb, &bpos, (a), (s))) != 0) { \
error = t2; \
m_freem(mreq); \
diff --git a/sys/nfsserver/nfsrvstats.h b/sys/nfsserver/nfsrvstats.h
index a2fac06..ec0d530 100644
--- a/sys/nfsserver/nfsrvstats.h
+++ b/sys/nfsserver/nfsrvstats.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs.h 8.4 (Berkeley) 5/1/95
- * $Id: nfs.h,v 1.36 1998/05/24 14:41:47 peter Exp $
+ * $Id: nfs.h,v 1.37 1998/05/31 17:27:45 peter Exp $
*/
#ifndef _NFS_NFS_H_
@@ -640,7 +640,7 @@ void nfsrv_cleancache __P((void));
int nfs_connect __P((struct nfsmount *, struct nfsreq *));
void nfs_disconnect __P((struct nfsmount *));
int nfs_getattrcache __P((struct vnode *, struct vattr *));
-int nfsm_strtmbuf __P((struct mbuf **, char **, char *, long));
+int nfsm_strtmbuf __P((struct mbuf **, char **, const char *, long));
int nfs_bioread __P((struct vnode *, struct uio *, int, struct ucred *,
int));
int nfsm_uiotombuf __P((struct uio *, struct mbuf **, int, caddr_t *));
OpenPOWER on IntegriCloud