[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Build fails



Hi,

I'm attaching a trivial patch which fixes compilation on the latest cross gcc.

--
MiKRO / Mystic Bytes
http://mikro.atari.org
diff --git a/sys/sockets/xif/ethernat/ethernat.c b/sys/sockets/xif/ethernat/ethernat.c
index 4fbb4b2..3578dbe 100644
--- a/sys/sockets/xif/ethernat/ethernat.c
+++ b/sys/sockets/xif/ethernat/ethernat.c
@@ -1085,7 +1085,6 @@ static void ethernat_service	(struct netif * nif)
 	char		packetnr;
 //	char		message[100];
 	long		tmp, *dpnt;
-	long		desttmp[2];
 	BUF		*b;
 
 //	long		timeval;
@@ -1125,9 +1124,6 @@ static void ethernat_service	(struct netif * nif)
 //		c_conws(col40);
 
 
-		//Look ahead at the destination address
-		desttmp[0] = *LAN_DATA;						//first 4 bytes of dest address
-		desttmp[1] = (*LAN_DATA) & 0xffff0000;	//last 2 bytes
 		*LAN_POINTER = 0x04e0;		//reset back to where we were before checking