Cast daddr_t to long so to avoid

"cast to pointer from integer of different size" warning.
This commit is contained in:
matt 2003-01-30 00:36:32 +00:00
parent 10a5895585
commit 7253b60a31
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: inkernel.c,v 1.2 2003/01/27 01:39:36 kleink Exp $ */
/* $NetBSD: inkernel.c,v 1.3 2003/01/30 00:36:32 matt Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -97,7 +97,7 @@ instrategy(devdata, func, blk, size, buf, rsize)
size_t *rsize; /* bytes transferred */
{
memcpy(buf, (char *)KERNENTRY + (blk * DEV_BSIZE), size);
memcpy(buf, (char *)KERNENTRY + ((long)blk * DEV_BSIZE), size);
*rsize = size;
return (0);
}