From 863d5c8b6850a65e8b4e00a7b23bbd29bd466602 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 15 Jul 1998 02:32:35 +0000 Subject: 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. --- sys/miscfs/nullfs/null_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/miscfs/nullfs/null_subr.c') diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c index 7244d05..e4d49b6 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; -- cgit v1.1