From: David van Moolenbroek Date: Sat, 18 Jul 2015 08:07:19 +0000 (+0200) Subject: lwip: no need to retrieve own endpoint X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=ec725af4c50fa09af47b29647aa55e3e3acbf012;p=minix.git lwip: no need to retrieve own endpoint Change-Id: I86bd20be9b1aec4116edbe112eb562737860568f --- diff --git a/minix/net/lwip/driver.c b/minix/net/lwip/driver.c index d5c69445e..a88f0ab0b 100644 --- a/minix/net/lwip/driver.c +++ b/minix/net/lwip/driver.c @@ -37,7 +37,6 @@ static struct nic devices[MAX_DEVS]; static ip_addr_t ip_addr_none = { IPADDR_NONE }; -extern endpoint_t lwip_ep; void nic_assign_driver(const char * dev_type, unsigned int dev_num, diff --git a/minix/net/lwip/eth.c b/minix/net/lwip/eth.c index 8b65c01ca..94a732ef6 100644 --- a/minix/net/lwip/eth.c +++ b/minix/net/lwip/eth.c @@ -62,8 +62,6 @@ #include "proto.h" #include "driver.h" -extern endpoint_t lwip_ep; - static err_t low_level_output(__unused struct netif *netif, struct pbuf *pbuf) { struct nic * nic; diff --git a/minix/net/lwip/lwip.c b/minix/net/lwip/lwip.c index f7b5af051..39e760712 100644 --- a/minix/net/lwip/lwip.c +++ b/minix/net/lwip/lwip.c @@ -22,8 +22,6 @@ #include #include -endpoint_t lwip_ep; - static minix_timer_t tcp_ftmr, tcp_stmr, arp_tmr; static int arp_ticks, tcp_fticks, tcp_sticks; @@ -60,13 +58,6 @@ static int sef_cb_init_fresh(__unused int type, __unused sef_init_info_t *info) int err; unsigned int hz; - char my_name[16]; - int my_priv; - - err = sys_whoami(&lwip_ep, my_name, sizeof(my_name), &my_priv); - if (err != OK) - panic("Cannot get own endpoint"); - nic_init_all(); inet_read_conf();