summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2003-07-03 11:12:32 +0000
committerdrochner <drochner@NetBSD.org>2003-07-03 11:12:32 +0000
commit71bedfd458ecbb2fee77278a17de07ac47965156 (patch)
treebaa38f7f073f5a9d157e53f0744b475ced69bcb4 /sys/dev/ic
parent29eaa7cc183fdf42e8dfd1486aa4a628bcfd4655 (diff)
Avoid an obscure gcc3 complaint about
"dereferencing type-punned pointer" by a cast to "void *". I don't completely understand the warning, but it helps.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/esiop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/esiop.c b/sys/dev/ic/esiop.c
index b5f289c072f..268b46394df 100644
--- a/sys/dev/ic/esiop.c
+++ b/sys/dev/ic/esiop.c
@@ -1,4 +1,4 @@
-/* $NetBSD: esiop.c,v 1.19 2003/05/03 18:11:17 wiz Exp $ */
+/* $NetBSD: esiop.c,v 1.20 2003/07/03 11:12:32 drochner Exp $ */
/*
* Copyright (c) 2002 Manuel Bouyer.
@@ -33,7 +33,7 @@
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.19 2003/05/03 18:11:17 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.20 2003/07/03 11:12:32 drochner Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1992,7 +1992,7 @@ esiop_moretagtbl(sc)
goto bad2;
}
error = bus_dmamem_map(sc->sc_c.sc_dmat, &seg, rseg, PAGE_SIZE,
- (caddr_t *)&tbls, BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
+ (void *)&tbls, BUS_DMA_NOWAIT|BUS_DMA_COHERENT);
if (error) {
printf("%s: unable to map tbls DMA memory, error = %d\n",
sc->sc_c.sc_dev.dv_xname, error);