diff options
author | phk <phk@FreeBSD.org> | 2002-10-20 21:40:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-20 21:40:55 +0000 |
commit | 9b7c9e2c4d249a83bfb5a8ffaa2b255851a71b53 (patch) | |
tree | 07ee637be2df645b9ef07c16b30d2413e1d10fe9 /sys/nfsclient | |
parent | c70af754d8642ea52fd801aea55ce454e8087432 (diff) | |
download | FreeBSD-src-9b7c9e2c4d249a83bfb5a8ffaa2b255851a71b53.zip FreeBSD-src-9b7c9e2c4d249a83bfb5a8ffaa2b255851a71b53.tar.gz |
Remove extern declarations of stuff which is static in nfs_node.c
Move related macro to nfs_node.c
Spotted by: FlexeLint
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs.h | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfs_node.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index b1a2929..f231fb9 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -200,12 +200,6 @@ extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq; #define R_MUSTRESEND 0x40 /* Must resend request */ #define R_GETONEREP 0x80 /* Probe for one reply only */ -extern struct nfsnodehashhead *nfsnodehashtbl; -extern u_long nfsnodehash; - -#define NFSNOHASH(fhsum) \ - (&nfsnodehashtbl[(fhsum) & nfsnodehash]) - /* * Defines for WebNFS */ diff --git a/sys/nfsclient/nfs_node.c b/sys/nfsclient/nfs_node.c index bdf22bd..30f4aff 100644 --- a/sys/nfsclient/nfs_node.c +++ b/sys/nfsclient/nfs_node.c @@ -64,6 +64,9 @@ static LIST_HEAD(nfsnodehashhead, nfsnode) *nfsnodehashtbl; static u_long nfsnodehash; static int nfs_node_hash_lock; +#define NFSNOHASH(fhsum) \ + (&nfsnodehashtbl[(fhsum) & nfsnodehash]) + #define TRUE 1 #define FALSE 0 |