shithub: 9ferno

Download patch

ref: b502a62da2ec6058923db94f87ecc2d29db2fa77
parent: 181c1172fa21b8699f1286f2224a35cb79dbb5a8
author: 9ferno <gophone2015@gmail.com>
date: Mon Aug 23 11:55:05 EDT 2021

removed subroutine in libip

--- a/os/port/devether.c	Sat Aug 21 12:35:23 2021
+++ b/os/port/devether.c	Mon Aug 23 11:55:05 2021
@@ -359,29 +359,6 @@
 	ncard++;
 }
 
-int
-parseether(uchar *to, char *from)
-{
-	char nip[4];
-	char *p;
-	int i;
-
-	p = from;
-	for(i = 0; i < 6; i++){
-		if(*p == 0)
-			return -1;
-		nip[0] = *p++;
-		if(*p == 0)
-			return -1;
-		nip[1] = *p++;
-		nip[2] = 0;
-		to[i] = strtoul(nip, 0, 16);
-		if(*p == ':')
-			p++;
-	}
-	return 0;
-}
-
 static Ether*
 etherprobe(int cardno, int ctlrno, char *conf)
 {