Don't cast a pointer to an int in DQHASH.

This commit is contained in:
Doug Rabson 1998-06-04 17:03:16 +00:00
parent 02cd25bfe2
commit 58b395a905
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36644

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_quota.c 8.5 (Berkeley) 5/20/95
* $Id: ufs_quota.c,v 1.20 1998/03/08 09:59:33 julian Exp $
* $Id: ufs_quota.c,v 1.21 1998/03/30 09:56:27 phk Exp $
*/
#include <sys/param.h>
@ -688,7 +688,7 @@ qsync(mp)
* Code pertaining to management of the in-core dquot data structures.
*/
#define DQHASH(dqvp, id) \
(&dqhashtbl[((((int)(dqvp)) >> 8) + id) & dqhash])
(&dqhashtbl[((((long)(dqvp)) >> 8) + id) & dqhash])
static LIST_HEAD(dqhash, dquot) *dqhashtbl;
static u_long dqhash;