unused ifunit global variable removed

This commit is contained in:
Sylvain Rochet 2012-06-09 01:26:21 +02:00
parent 21653f0f91
commit 2ec79c03a0
3 changed files with 1 additions and 6 deletions

View File

@ -1824,7 +1824,7 @@ ipcp_up(f)
return;
}
if (ho->hisaddr == 0 && !noremoteip) {
ho->hisaddr = htonl(0x0a404040 + ifunit);
ho->hisaddr = htonl(0x0a404040);
warn("Could not determine remote IP address: defaulting to %I",
ho->hisaddr);
}

View File

@ -156,8 +156,6 @@ int unsuccess; /* # unsuccessful connection attempts */
int listen_time; /* time to listen first (ms) */
int status; /* exit status for pppd */
int need_holdoff; /* need holdoff period before restarting */
/* FIXME: remove ifunit */
int ifunit; /* Interface unit number */
/* FIXME: outpacket_buf per PPP session */
@ -367,7 +365,6 @@ int ppp_init(void) {
listen_time = 0;
status = EXIT_OK;
need_holdoff = 1;
ifunit = 1; /* FIXME: remove ifunit */
#if PPP_STATS_SUPPORT
link_stats_valid = 0;
#endif /* PPP_STATS_SUPPORT */

View File

@ -272,8 +272,6 @@ extern int unsuccess; /* # unsuccessful connection attempts */
extern int listen_time; /* time to listen first (ms) */
extern int status; /* exit status for pppd */
extern int need_holdoff; /* Need holdoff period after link terminates */
/* FIXME: remove ifunit */
extern int ifunit; /* Interface unit number */
extern u_char outpacket_buf[]; /* Buffer for outgoing packets */
/* FIXME: add more HAVE_MULTILINK */