Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib/netif add some casts for gcc -Wall, ...
details: https://anonhg.NetBSD.org/src/rev/8aa00b9e634d
branches: trunk
changeset: 472892:8aa00b9e634d
user: drochner <drochner%NetBSD.org@localhost>
date: Tue May 11 19:57:05 1999 +0000
description:
add some casts for gcc -Wall, from David Rankin
<drankin%bohemians.lexington.ky.us@localhost> per PR port-i386/7554
diffstat:
sys/arch/i386/stand/lib/netif/dp8390.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ea2932029ba7 -r 8aa00b9e634d sys/arch/i386/stand/lib/netif/dp8390.c
--- a/sys/arch/i386/stand/lib/netif/dp8390.c Tue May 11 19:43:09 1999 +0000
+++ b/sys/arch/i386/stand/lib/netif/dp8390.c Tue May 11 19:57:05 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dp8390.c,v 1.1 1998/02/16 11:22:00 drochner Exp $ */
+/* $NetBSD: dp8390.c,v 1.2 1999/05/11 19:57:05 drochner Exp $ */
/*
* Polling driver for National Semiconductor DS8390/WD83C690 based
@@ -193,7 +193,7 @@
int len;
{
#ifdef _STANDALONE
- vpbcopy(pkt, dp8390_membase, len);
+ vpbcopy(pkt, (void *)dp8390_membase, len);
#else
bbcopy(pkt, vmembase, len);
#endif
@@ -225,7 +225,7 @@
/* Copy amount up to end of NIC memory. */
#ifdef _STANDALONE
- pvbcopy(buf, dest, tmp_amount);
+ pvbcopy((void *)buf, dest, tmp_amount);
#else
bbcopy(vmembase + buf - dp8390_membase, dest, tmp_amount);
#endif
@@ -235,7 +235,7 @@
dest += tmp_amount;
}
#ifdef _STANDALONE
- pvbcopy(buf, dest, len);
+ pvbcopy((void *)buf, dest, len);
#else
bbcopy(vmembase + buf - dp8390_membase, dest, len);
#endif
@@ -284,7 +284,7 @@
* the NIC.
*/
#ifdef _STANDALONE
- pvbcopy(packet_ptr, &packet_hdr, 4);
+ pvbcopy((void *)packet_ptr, &packet_hdr, 4);
#else
bbcopy(vmembase + packet_ptr - dp8390_membase, &packet_hdr, 4);
#endif
Home |
Main Index |
Thread Index |
Old Index