summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2005-12-14 00:49:52 +0000
committerdes <des@FreeBSD.org>2005-12-14 00:49:52 +0000
commit5d3c44687b2e85f65228a2386d84f916ff779427 (patch)
treeedb405f1b2060efab8f9d986b17763a5aceffb7f /sys/ufs
parentd40bda1cd272e7d30f8998f9f75273296ea1c654 (diff)
downloadFreeBSD-src-5d3c44687b2e85f65228a2386d84f916ff779427.zip
FreeBSD-src-5d3c44687b2e85f65228a2386d84f916ff779427.tar.gz
Eradicate caddr_t from the VFS API.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/quota.h8
-rw-r--r--sys/ufs/ufs/ufs_quota.c20
-rw-r--r--sys/ufs/ufs/ufs_vfsops.c2
3 files changed, 15 insertions, 15 deletions
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h
index 1b6b80d..8fb9eb2 100644
--- a/sys/ufs/ufs/quota.h
+++ b/sys/ufs/ufs/quota.h
@@ -179,12 +179,12 @@ void dqinit(void);
void dqrele(struct vnode *, struct dquot *);
void dquninit(void);
int getinoquota(struct inode *);
-int getquota(struct thread *, struct mount *, u_long, int, caddr_t);
+int getquota(struct thread *, struct mount *, u_long, int, void *);
int qsync(struct mount *mp);
int quotaoff(struct thread *td, struct mount *, int);
-int quotaon(struct thread *td, struct mount *, int, caddr_t);
-int setquota(struct thread *, struct mount *, u_long, int, caddr_t);
-int setuse(struct thread *, struct mount *, u_long, int, caddr_t);
+int quotaon(struct thread *td, struct mount *, int, void *);
+int setquota(struct thread *, struct mount *, u_long, int, void *);
+int setuse(struct thread *, struct mount *, u_long, int, void *);
vfs_quotactl_t ufs_quotactl;
#else /* !_KERNEL */
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index 837d0c4..2ba8d1a 100644
--- a/sys/ufs/ufs/ufs_quota.c
+++ b/sys/ufs/ufs/ufs_quota.c
@@ -399,7 +399,7 @@ quotaon(td, mp, type, fname)
struct thread *td;
struct mount *mp;
int type;
- caddr_t fname;
+ void *fname;
{
struct ufsmount *ump = VFSTOUFS(mp);
struct vnode *vp, **vpp;
@@ -555,7 +555,7 @@ getquota(td, mp, id, type, addr)
struct mount *mp;
u_long id;
int type;
- caddr_t addr;
+ void *addr;
{
struct dquot *dq;
int error;
@@ -584,7 +584,7 @@ getquota(td, mp, id, type, addr)
error = dqget(NULLVP, id, VFSTOUFS(mp), type, &dq);
if (error)
return (error);
- error = copyout((caddr_t)&dq->dq_dqb, addr, sizeof (struct dqblk));
+ error = copyout(&dq->dq_dqb, addr, sizeof (struct dqblk));
dqrele(NULLVP, dq);
return (error);
}
@@ -598,7 +598,7 @@ setquota(td, mp, id, type, addr)
struct mount *mp;
u_long id;
int type;
- caddr_t addr;
+ void *addr;
{
struct dquot *dq;
struct dquot *ndq;
@@ -610,7 +610,7 @@ setquota(td, mp, id, type, addr)
if (error)
return (error);
- error = copyin(addr, (caddr_t)&newlim, sizeof (struct dqblk));
+ error = copyin(addr, &newlim, sizeof (struct dqblk));
if (error)
return (error);
error = dqget(NULLVP, id, ump, type, &ndq);
@@ -664,7 +664,7 @@ setuse(td, mp, id, type, addr)
struct mount *mp;
u_long id;
int type;
- caddr_t addr;
+ void *addr;
{
struct dquot *dq;
struct ufsmount *ump = VFSTOUFS(mp);
@@ -676,7 +676,7 @@ setuse(td, mp, id, type, addr)
if (error)
return (error);
- error = copyin(addr, (caddr_t)&usage, sizeof (struct dqblk));
+ error = copyin(addr, &usage, sizeof (struct dqblk));
if (error)
return (error);
error = dqget(NULLVP, id, ump, type, &ndq);
@@ -882,7 +882,7 @@ dqget(vp, id, ump, type, dqp)
dq->dq_type = type;
auio.uio_iov = &aiov;
auio.uio_iovcnt = 1;
- aiov.iov_base = (caddr_t)&dq->dq_dqb;
+ aiov.iov_base = &dq->dq_dqb;
aiov.iov_len = sizeof (struct dqblk);
auio.uio_resid = sizeof (struct dqblk);
auio.uio_offset = (off_t)(id * sizeof (struct dqblk));
@@ -891,7 +891,7 @@ dqget(vp, id, ump, type, dqp)
auio.uio_td = (struct thread *)0;
error = VOP_READ(dqvp, &auio, 0, ump->um_cred[type]);
if (auio.uio_resid == sizeof(struct dqblk) && error == 0)
- bzero((caddr_t)&dq->dq_dqb, sizeof(struct dqblk));
+ bzero(&dq->dq_dqb, sizeof(struct dqblk));
if (vp != dqvp)
VOP_UNLOCK(dqvp, 0, td);
if (dq->dq_flags & DQ_WANT)
@@ -994,7 +994,7 @@ dqsync(vp, dq)
dq->dq_flags |= DQ_LOCK;
auio.uio_iov = &aiov;
auio.uio_iovcnt = 1;
- aiov.iov_base = (caddr_t)&dq->dq_dqb;
+ aiov.iov_base = &dq->dq_dqb;
aiov.iov_len = sizeof (struct dqblk);
auio.uio_resid = sizeof (struct dqblk);
auio.uio_offset = (off_t)(dq->dq_id * sizeof (struct dqblk));
diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c
index ff81bf8..8fdf71f 100644
--- a/sys/ufs/ufs/ufs_vfsops.c
+++ b/sys/ufs/ufs/ufs_vfsops.c
@@ -90,7 +90,7 @@ ufs_quotactl(mp, cmds, uid, arg, td)
struct mount *mp;
int cmds;
uid_t uid;
- caddr_t arg;
+ void *arg;
struct thread *td;
{
#ifndef QUOTA
OpenPOWER on IntegriCloud