changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/zynq/devether.c

revision 6250: ae7c1bf5cb85
parent 4369: 34011db24434
child 6255: 2de88464dd85
     1.1--- a/sys/src/9/zynq/devether.c
     1.2+++ b/sys/src/9/zynq/devether.c
     1.3@@ -340,29 +340,6 @@ addethercard(char* t, int (*r)(Ether*))
     1.4 	ncard++;
     1.5 }
     1.6 
     1.7-int
     1.8-parseether(uchar *to, char *from)
     1.9-{
    1.10-	char nip[4];
    1.11-	char *p;
    1.12-	int i;
    1.13-
    1.14-	p = from;
    1.15-	for(i = 0; i < Eaddrlen; i++){
    1.16-		if(*p == 0)
    1.17-			return -1;
    1.18-		nip[0] = *p++;
    1.19-		if(*p == 0)
    1.20-			return -1;
    1.21-		nip[1] = *p++;
    1.22-		nip[2] = 0;
    1.23-		to[i] = strtoul(nip, 0, 16);
    1.24-		if(*p == ':')
    1.25-			p++;
    1.26-	}
    1.27-	return 0;
    1.28-}
    1.29-
    1.30 static Ether*
    1.31 etherprobe(int cardno, int ctlrno)
    1.32 {