diff packages/redboot/current/src/net/enet.c @ 132:0ae0bc38e387 ecos-sw-2000-10-31

Merge from eCos master repository on 2000-10-31-00:30:36-GMT
author jlarmour
date Tue, 31 Oct 2000 20:53:09 +0000
parents eb9fd8c04db3
children 25e238959bae
line wrap: on
line diff
--- a/packages/redboot/current/src/net/enet.c
+++ b/packages/redboot/current/src/net/enet.c
@@ -43,7 +43,9 @@
 //
 //==========================================================================
 
+#include <redboot.h>
 #include <net/net.h>
+#include <eth_drv.h>       // Logical driver interfaces
 
 #define ENET_STATS 1
 
@@ -79,7 +81,7 @@ void
             return;
         }
 
-        if ((pkt->pkt_bytes = eth_drv_read(&eth_hdr, (char *)pkt->buf,
+        if ((pkt->pkt_bytes = eth_drv_read((char *)&eth_hdr, (char *)pkt->buf,
                                            ETH_MAX_PKTLEN)) > 0) {
 #if ENET_STATS
             ++num_received;
@@ -138,7 +140,7 @@ void
     memcpy(&eth_hdr.source, __local_enet_addr, sizeof(enet_addr_t));
     eth_hdr.type = htons(eth_type);
 
-    eth_drv_write(&eth_hdr, (const char *)pkt->buf, pkt->pkt_bytes);
+    eth_drv_write((char *)&eth_hdr, (char *)pkt->buf, pkt->pkt_bytes);
 #if ENET_STATS
     ++num_transmitted;
 #endif