diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-09-20 12:54:32 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-09-20 12:54:32 +0000 |
commit | 35a7fe647ce46eafedd8a154db1b3b6c04c630a5 (patch) | |
tree | b72d86f8c636b2132383a7135e63d7795f1c5d42 /sys/nfs/nfs_kq.c | |
parent | 2650f9c8b741b5eeac7830ef59dea2409937f8ed (diff) |
MALLOC/FREE -> malloc/free + M_ZERO.
Uneeded includes and casts...
ok krw@
Diffstat (limited to 'sys/nfs/nfs_kq.c')
-rw-r--r-- | sys/nfs/nfs_kq.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/nfs/nfs_kq.c b/sys/nfs/nfs_kq.c index df806d9314b..c2ecfb35d22 100644 --- a/sys/nfs/nfs_kq.c +++ b/sys/nfs/nfs_kq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_kq.c,v 1.9 2007/06/01 23:47:57 deraadt Exp $ */ +/* $OpenBSD: nfs_kq.c,v 1.10 2007/09/20 12:54:31 thib Exp $ */ /* $NetBSD: nfs_kq.c,v 1.7 2003/10/30 01:43:10 simonb Exp $ */ /*- @@ -209,7 +209,7 @@ filt_nfsdetach(struct knote *kn) } else { /* last user, g/c */ SLIST_REMOVE(&kevlist, ke, kevq, kev_link); - FREE(ke, M_KEVENT); + free(ke, M_KEVENT); } break; } @@ -319,8 +319,7 @@ nfs_kqfilter(void *v) ke->usecount++; } else { /* need a new one */ - MALLOC(ke, struct kevq *, - sizeof(struct kevq), M_KEVENT, M_WAITOK); + ke = malloc(sizeof(struct kevq), M_KEVENT, M_WAITOK); ke->vp = vp; ke->usecount = 1; ke->flags = 0; |