diff options
author | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-15 02:32:35 +0000 |
commit | 863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch) | |
tree | 503589837ac05f783d5305211b0f41aed97e2041 /sys/ufs | |
parent | b99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff) | |
download | FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.zip FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.tar.gz |
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.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index b899ebe..c833cdf 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)ufs_quota.c 8.5 (Berkeley) 5/20/95 - * $Id: ufs_quota.c,v 1.22 1998/06/04 17:03:16 dfr Exp $ + * $Id: ufs_quota.c,v 1.23 1998/06/21 14:53:40 bde Exp $ */ #include <sys/param.h> @@ -687,7 +687,7 @@ again: * Code pertaining to management of the in-core dquot data structures. */ #define DQHASH(dqvp, id) \ - (&dqhashtbl[((((long)(dqvp)) >> 8) + id) & dqhash]) + (&dqhashtbl[((((intptr_t)(dqvp)) >> 8) + id) & dqhash]) static LIST_HEAD(dqhash, dquot) *dqhashtbl; static u_long dqhash; |