diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-06-22 09:38:54 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-06-22 09:38:54 +0000 |
commit | 063a9a90fd1738138dff12cefdd4698180aca3ff (patch) | |
tree | 42fc0b66e6789be0c7a0ea93d7567bec39ff80fa /sys | |
parent | eff31c2487a2e562b7ad6253ad79661ab726fd46 (diff) |
declare "pid" as pid_t instead of long, and remove unneeded cast to pid_t
ok pedro@ thib@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 4 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index 20debdd1e41..361fe46d574 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs.h,v 1.23 2005/12/11 21:30:31 miod Exp $ */ +/* $OpenBSD: procfs.h,v 1.24 2007/06/22 09:38:53 jasper Exp $ */ /* $NetBSD: procfs.h,v 1.17 1996/02/12 15:01:41 christos Exp $ */ /* @@ -110,7 +110,7 @@ struct vfs_namemap { int vfs_getuserstr(struct uio *, char *, int *); const vfs_namemap_t *vfs_findname(const vfs_namemap_t *, char *, int); -int procfs_allocvp(struct mount *, struct vnode **, long, pfstype); +int procfs_allocvp(struct mount *, struct vnode **, pid_t, pfstype); int procfs_doctl(struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio); int procfs_dofpregs(struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio); int procfs_donote(struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio); diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index bbea0ff18bb..99542c3e46a 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: procfs_subr.c,v 1.26 2007/06/18 08:30:07 jasper Exp $ */ +/* $OpenBSD: procfs_subr.c,v 1.27 2007/06/22 09:38:53 jasper Exp $ */ /* $NetBSD: procfs_subr.c,v 1.15 1996/02/12 15:01:42 christos Exp $ */ /* @@ -87,7 +87,7 @@ procfs_init(struct vfsconf *vfsp) * the vnode free list. */ int -procfs_allocvp(struct mount *mp, struct vnode **vpp, long pid, pfstype pfs_type) +procfs_allocvp(struct mount *mp, struct vnode **vpp, pid_t pid, pfstype pfs_type) { struct proc *p = curproc; struct pfsnode *pfs; @@ -120,7 +120,7 @@ loop: MALLOC(pfs, void *, sizeof(struct pfsnode), M_TEMP, M_WAITOK); vp->v_data = pfs; - pfs->pfs_pid = (pid_t) pid; + pfs->pfs_pid = pid; pfs->pfs_type = pfs_type; pfs->pfs_vnode = vp; pfs->pfs_flags = 0; |