diff options
author | grr <grr@cvs.openbsd.org> | 1997-06-20 07:17:26 +0000 |
---|---|---|
committer | grr <grr@cvs.openbsd.org> | 1997-06-20 07:17:26 +0000 |
commit | 9901eb97be8583994aaf809b8977a41b55fe8b8f (patch) | |
tree | 872fec8e402c2e851496de01f28b92dfa7cfdaa4 /sys/dev/pci | |
parent | 1bd9b5cf292642ffcab64ee89acc1d35687d466d (diff) |
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.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_de.c | 6 |
1 files changed, 3 insertions, 3 deletions
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[] = { |