Cast KERNENTRY into a char * before doing arithmetic on it, so we don't end
up trying to cast a 64-bit integer into a pointer, which GCC warns about.
This commit is contained in:
parent
d3c0cf0ad5
commit
6da931ff0d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: inkernel.c,v 1.3 1999/06/28 01:20:44 sakamoto Exp $ */
|
||||
/* $NetBSD: inkernel.c,v 1.4 2003/04/20 18:17:07 bjh21 Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -91,7 +91,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 + blk * DEV_BSIZE, size);
|
||||
*rsize = size;
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue