summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-06-04 17:03:16 +0000
committerdfr <dfr@FreeBSD.org>1998-06-04 17:03:16 +0000
commit56e5ba84df55d5549ce44a385f048e721ceb8fd6 (patch)
tree87cd9adbde4d1a01a9678180451cea5c57ad9b91
parent7bed39d5b2053d01862b272851fc487f7767ba11 (diff)
downloadFreeBSD-src-56e5ba84df55d5549ce44a385f048e721ceb8fd6.zip
FreeBSD-src-56e5ba84df55d5549ce44a385f048e721ceb8fd6.tar.gz
Don't cast a pointer to an int in DQHASH.
-rw-r--r--sys/ufs/ufs/ufs_quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c
index d3b7d66..26de09b 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.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 @@ again:
* 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;
OpenPOWER on IntegriCloud