summaryrefslogtreecommitdiffstats
path: root/sys/dev/de
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-01-29 08:29:05 +0000
committerbde <bde@FreeBSD.org>1999-01-29 08:29:05 +0000
commitcf8e8cebcc0d1caa79eb2e92784961cfe301f5bb (patch)
treec63d1b3353b2fcece19d5bc7ffbac8511b96a66e /sys/dev/de
parentc9d851cd134f45e297e380c497f352c0dc18bc0c (diff)
downloadFreeBSD-src-cf8e8cebcc0d1caa79eb2e92784961cfe301f5bb.zip
FreeBSD-src-cf8e8cebcc0d1caa79eb2e92784961cfe301f5bb.tar.gz
Removed bogus casts to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice. Here the original casts to caddr_t were to support K&R compilers (or missing prototypes), but the relevant source files require an ANSI compiler.
Diffstat (limited to 'sys/dev/de')
-rw-r--r--sys/dev/de/if_de.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index f6d120d..e8c2ae4 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.95 1999/01/28 00:57:52 dillon Exp $ */
+/* $Id: if_de.c,v 1.96 1999/01/28 17:32:02 dillon Exp $ */
/*-
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
@@ -2412,7 +2412,7 @@ tulip_srom_decode(
/*
* Save the hardware address.
*/
- bcopy((c_caddr_t) shp->sh_ieee802_address, (v_caddr_t) sc->tulip_enaddr, 6);
+ bcopy(shp->sh_ieee802_address, (v_caddr_t) sc->tulip_enaddr, 6);
/*
* If this is a multiple port card, add the adapter index to the last
* byte of the hardware address. (if it isn't multiport, adding 0
@@ -2972,8 +2972,7 @@ 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((c_caddr_t) sc->tulip_enaddr,
- (c_caddr_t) tulip_vendors[idx].vendor_oui, 3) == 0) {
+ if (bcmp(sc->tulip_enaddr, tulip_vendors[idx].vendor_oui, 3) == 0) {
(*tulip_vendors[idx].vendor_identify_nic)(sc);
break;
}
OpenPOWER on IntegriCloud