summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-12-18 19:20:05 +0000
committerdillon <dillon@FreeBSD.org>1999-12-18 19:20:05 +0000
commit00382428de8c7bc2ae7057069d3d491ad9f1dd2a (patch)
tree637c62808f128070d22ce66952df5c4b0c05aad1 /sys/nfs
parent1a2b8e413c3906dea6cbdb44bea09c54866a1427 (diff)
downloadFreeBSD-src-00382428de8c7bc2ae7057069d3d491ad9f1dd2a.zip
FreeBSD-src-00382428de8c7bc2ae7057069d3d491ad9f1dd2a.tar.gz
Fix compilation warning on alpha when converting pointer to integer
to generate hash index. Reviewed by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_serv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index d535483..0d28670 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -863,7 +863,7 @@ nfsrv_read(nfsd, slp, procp, mrq)
* Locate best candidate
*/
- hi = ((int)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1);
+ hi = ((int)(vm_offset_t)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1);
nh = &nfsheur[hi];
while (try--) {
OpenPOWER on IntegriCloud