diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-20 18:32:39 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-05-20 18:32:39 +0000 |
commit | 7c69cf8c4003a6653d7489bbe821376a3207db2f (patch) | |
tree | 35918811be1d242129f5f02847f4fe920483cc0f /sys/miscfs/kernfs | |
parent | 91baecc933ea55719a96d5820bb4123c1d44ee65 (diff) |
remove more caddr_t
Diffstat (limited to 'sys/miscfs/kernfs')
-rw-r--r-- | sys/miscfs/kernfs/kernfs_vnops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index 8df9c830deb..0846a3e3a27 100644 --- a/sys/miscfs/kernfs/kernfs_vnops.c +++ b/sys/miscfs/kernfs/kernfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kernfs_vnops.c,v 1.37 2003/12/09 11:56:08 mickey Exp $ */ +/* $OpenBSD: kernfs_vnops.c,v 1.38 2004/05/20 18:32:37 tedu Exp $ */ /* $NetBSD: kernfs_vnops.c,v 1.43 1996/03/16 23:52:47 christos Exp $ */ /* @@ -589,7 +589,7 @@ kernfs_getattr(v) char strbuf[KSTRING], *buf; - bzero((caddr_t) vap, sizeof(*vap)); + bzero(vap, sizeof(*vap)); vattr_null(vap); vap->va_uid = 0; vap->va_gid = 0; @@ -774,7 +774,7 @@ kernfs_readdir(v) error = 0; i = uio->uio_offset; - bzero((caddr_t)&d, UIO_MX); + bzero(&d, UIO_MX); d.d_reclen = UIO_MX; for (kt = &kern_targets[i]; @@ -796,7 +796,7 @@ kernfs_readdir(v) bcopy(kt->kt_name, d.d_name, kt->kt_namlen + 1); d.d_type = kt->kt_type; - if ((error = uiomove((caddr_t)&d, UIO_MX, uio)) != 0) + if ((error = uiomove(&d, UIO_MX, uio)) != 0) break; } |