From 71bedfd458ecbb2fee77278a17de07ac47965156 Mon Sep 17 00:00:00 2001 From: drochner Date: Thu, 3 Jul 2003 11:12:32 +0000 Subject: [PATCH] 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. --- sys/dev/ic/esiop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/esiop.c b/sys/dev/ic/esiop.c index b5f289c072fc..268b46394dfb 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 -__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 #include @@ -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);