diff options
author | phk <phk@FreeBSD.org> | 2005-02-10 12:05:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-02-10 12:05:06 +0000 |
commit | b37bc365fbf112cdbce48972c9e7331fdd05a919 (patch) | |
tree | d271a87815fb4306954c2c19983341ac16e923fa /sys/fs/nwfs | |
parent | 4fc19472adcada7d41d2e0520773925e4c6f3fb9 (diff) | |
download | FreeBSD-src-b37bc365fbf112cdbce48972c9e7331fdd05a919.zip FreeBSD-src-b37bc365fbf112cdbce48972c9e7331fdd05a919.tar.gz |
Statize malloc types.
Don't call vprint with NULL.
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r-- | sys/fs/nwfs/nwfs_node.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/nwfs/nwfs_node.c b/sys/fs/nwfs/nwfs_node.c index 28b96a1..026d74c 100644 --- a/sys/fs/nwfs/nwfs_node.c +++ b/sys/fs/nwfs/nwfs_node.c @@ -64,8 +64,8 @@ static LIST_HEAD(nwnode_hash_head,nwnode) *nwhashtbl; static u_long nwnodehash; static struct lock nwhashlock; -MALLOC_DEFINE(M_NWNODE, "NWFS node", "NWFS vnode private part"); -MALLOC_DEFINE(M_NWFSHASH, "NWFS hash", "NWFS has table"); +static MALLOC_DEFINE(M_NWNODE, "NWFS node", "NWFS vnode private part"); +static MALLOC_DEFINE(M_NWFSHASH, "NWFS hash", "NWFS has table"); static int nwfs_sysctl_vnprint(SYSCTL_HANDLER_ARGS); @@ -100,7 +100,7 @@ nwfs_sysctl_vnprint(SYSCTL_HANDLER_ARGS) { nhpp = &nwhashtbl[i]; LIST_FOREACH(np, nhpp, n_hash) { vp = NWTOV(np); - vprint(NULL, vp); + vprint("", vp); printf("%s:%d:%d:%d:%d\n",np->n_name,vrefcnt(vp), vp->v_holdcnt,np->n_fid.f_id, np->n_fid.f_parent); } |