From 35a7fe647ce46eafedd8a154db1b3b6c04c630a5 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Thu, 20 Sep 2007 12:54:32 +0000 Subject: MALLOC/FREE -> malloc/free + M_ZERO. Uneeded includes and casts... ok krw@ --- sys/nfs/nfs_socket.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/nfs/nfs_socket.c') diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index e3ed1525640..38fe77d854f 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.49 2007/06/25 20:40:00 thib Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.50 2007/09/20 12:54:31 thib Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -2070,8 +2070,7 @@ nfsrv_dorec(slp, nfsd, ndp) nam->m_next = NULL; } else nam = NULL; - MALLOC(nd, struct nfsrv_descript *, sizeof (struct nfsrv_descript), - M_NFSRVDESC, M_WAITOK); + nd = malloc(sizeof(struct nfsrv_descript), M_NFSRVDESC, M_WAITOK); nfs_realign(&m, 10 * NFSX_UNSIGNED); nd->nd_md = nd->nd_mrep = m; nd->nd_nam2 = nam; @@ -2079,7 +2078,7 @@ nfsrv_dorec(slp, nfsd, ndp) error = nfs_getreq(nd, nfsd, TRUE); if (error) { m_freem(nam); - free((caddr_t)nd, M_NFSRVDESC); + free(nd, M_NFSRVDESC); return (error); } *ndp = nd; -- cgit v1.2.3