diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-09 22:07:32 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-09 22:07:32 +0100 |
commit | 35bc3ac5735bd0edff45b68465de710ff61d2385 (patch) | |
tree | b331ab7c7a7a0d7f936a9902c7bea13e12b38c19 /sys/src/9/mtx | |
parent | a7ac020664f1de870b09807086565030246ad6fb (diff) |
devether: remove duplicated parseether() implementation (pull from libip)
Diffstat (limited to 'sys/src/9/mtx')
-rw-r--r-- | sys/src/9/mtx/devether.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/src/9/mtx/devether.c b/sys/src/9/mtx/devether.c index 51c63857d..657b22ccf 100644 --- a/sys/src/9/mtx/devether.c +++ b/sys/src/9/mtx/devether.c @@ -321,29 +321,6 @@ addethercard(char* t, int (*r)(Ether*)) 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 void etherreset(void) { |