diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-12-29 13:04:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-12-29 13:04:38 +0000 |
commit | ba02f4c341ab798b8da15c745fc34262ae5a5453 (patch) | |
tree | 9473fe40366c845b982fc8384589829f15cd5fe0 /sys/dev/pci/bktr/bktr_core.c | |
parent | b7675ae17e9bbe19e88fdbe069031a9a676974c3 (diff) |
Avoid void * arithmetic, okay deraadt@, suggestions from millert@
Diffstat (limited to 'sys/dev/pci/bktr/bktr_core.c')
-rw-r--r-- | sys/dev/pci/bktr/bktr_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index df3668a329e..ac9eb62ce7e 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.19 2006/01/20 18:14:17 millert Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.20 2006/12/29 13:04:37 pedro Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -2878,7 +2878,7 @@ rgb_vbi_prog(bktr_ptr_t bktr, char i_flag, int cols, int rows, int interlace ) *dma_prog++ = (u_int )vtophys(loop_point) ; #else *dma_prog++ = htole32(bktr->dm_prog->dm_segs->ds_addr + - ((void *)loop_point - (void *)bktr->dma_prog)); + ((char *)loop_point - (char *)bktr->dma_prog)); #endif *dma_prog++ = htole32(0); /* NULL WORD */ |