diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 23:45:44 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 23:45:44 +0000 |
commit | f9a4729a9b5e134850841ee06d85b97bf66e749b (patch) | |
tree | e09f1712b3a4b92e9e060d46fecff5e8f5243354 /sys/dev/de | |
parent | c590848cf5d691aba15e5a6579fb75c5fbefab93 (diff) | |
download | FreeBSD-src-f9a4729a9b5e134850841ee06d85b97bf66e749b.zip FreeBSD-src-f9a4729a9b5e134850841ee06d85b97bf66e749b.tar.gz |
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile.
This commit includes significant work to proper handle const arguments
for the DDB symbol routines.
Diffstat (limited to 'sys/dev/de')
-rw-r--r-- | sys/dev/de/if_de.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 8235427..c9c79ec 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -1,5 +1,5 @@ /* $NetBSD: if_de.c,v 1.80 1998/09/25 18:06:53 matt Exp $ */ -/* $Id: if_de.c,v 1.92 1998/12/14 05:47:26 dillon Exp $ */ +/* $Id: if_de.c,v 1.93 1998/12/30 00:37:43 hoek Exp $ */ /*- * Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com) @@ -2390,8 +2390,8 @@ tulip_srom_decode( { unsigned 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 = (const tulip_srom_header_t *) &sc->tulip_rombuf[0]; + const tulip_srom_adapter_info_t *saip = (const 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; @@ -2972,8 +2972,8 @@ tulip_read_macaddr( * Check for various boards based on OUI. Did I say braindead? */ for (idx = 0; tulip_vendors[idx].vendor_identify_nic != NULL; idx++) { - if (bcmp((caddr_t) sc->tulip_enaddr, - (caddr_t) tulip_vendors[idx].vendor_oui, 3) == 0) { + if (bcmp((c_caddr_t) sc->tulip_enaddr, + (c_caddr_t) tulip_vendors[idx].vendor_oui, 3) == 0) { (*tulip_vendors[idx].vendor_identify_nic)(sc); break; } |