From 9901eb97be8583994aaf809b8977a41b55fe8b8f Mon Sep 17 00:00:00 2001 From: grr Date: Fri, 20 Jun 1997 07:17:26 +0000 Subject: Comment out some superfluous const declarations that cause cast warnings with gcc/alpha. We have bcopy(const void *...) so casting a const foo *bar as in bcopy((caddr_t) bar,...) for bcopy seems to be fairly pointless in the first place, but there are too many of these to hack out at the moment. --- sys/dev/pci/if_de.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c index c58d871f694..9feb0a82d66 100644 --- a/sys/dev/pci/if_de.c +++ b/sys/dev/pci/if_de.c @@ -2287,8 +2287,8 @@ tulip_srom_decode( { int idx1, idx2, idx3; - const tulip_srom_header_t *shp = (tulip_srom_header_t *) &sc->tulip_rombuf[0]; - const tulip_srom_adapter_info_t *saip = (tulip_srom_adapter_info_t *) (shp + 1); + /* const */ tulip_srom_header_t *shp = (tulip_srom_header_t *) &sc->tulip_rombuf[0]; + tulip_srom_adapter_info_t *saip = (tulip_srom_adapter_info_t *) (shp + 1); tulip_srom_media_t srom_media; tulip_media_info_t *mi = sc->tulip_mediainfo; const u_int8_t *dp; @@ -2636,7 +2636,7 @@ tulip_srom_decode( } -static const struct { +static /* const */ struct { void (*vendor_identify_nic)(tulip_softc_t * const sc); unsigned char vendor_oui[3]; } tulip_vendors[] = { -- cgit v1.2.3