aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/nullfs/null_subr.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
commita23d65bfc81ba69197bec5dcc814e36783f02f46 (patch)
tree8ea1483624c6c26a321a15abba7f299f7726ac5d /sys/miscfs/nullfs/null_subr.c
parentaad7cac45af92ed232797abde2e4506b80046c1e (diff)
Cast pointers to uintptr_t/intptr_t instead of to u_long/long,
respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
Notes
Notes: svn path=/head/; revision=37649
Diffstat (limited to 'sys/miscfs/nullfs/null_subr.c')
-rw-r--r--sys/miscfs/nullfs/null_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c
index 7244d0565352..e4d49b6430cb 100644
--- a/sys/miscfs/nullfs/null_subr.c
+++ b/sys/miscfs/nullfs/null_subr.c
@@ -35,7 +35,7 @@
*
* @(#)null_subr.c 8.7 (Berkeley) 5/14/95
*
- * $Id: null_subr.c,v 1.16 1998/02/06 12:13:36 eivind Exp $
+ * $Id: null_subr.c,v 1.17 1998/02/09 06:09:45 eivind Exp $
*/
#include "opt_debug_nullfs.h"
@@ -60,7 +60,7 @@
*/
#define NULL_NHASH(vp) \
- (&null_node_hashtbl[(((u_long)vp)>>LOG2_SIZEVNODE) & null_node_hash])
+ (&null_node_hashtbl[(((uintptr_t)vp)>>LOG2_SIZEVNODE) & null_node_hash])
static LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl;
static u_long null_node_hash;