mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 14:46:01 +00:00
Removed unnecessary global variable "subnetMask", which is only used in one function (GetMask)
This commit is contained in:
parent
2c9b3b35d1
commit
0e7df4b193
|
@ -250,8 +250,6 @@ static void pppFreeCurrentInputPacket(PPPControlRx *pcrx);
|
||||||
/******************************/
|
/******************************/
|
||||||
/*** PUBLIC DATA STRUCTURES ***/
|
/*** PUBLIC DATA STRUCTURES ***/
|
||||||
/******************************/
|
/******************************/
|
||||||
u_long subnetMask;
|
|
||||||
|
|
||||||
static PPPControl pppControl[NUM_PPP]; /* The PPP interface control blocks. */
|
static PPPControl pppControl[NUM_PPP]; /* The PPP interface control blocks. */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -447,8 +445,6 @@ pppInit(void)
|
||||||
|
|
||||||
magicInit();
|
magicInit();
|
||||||
|
|
||||||
subnetMask = PP_HTONL(0xffffff00UL);
|
|
||||||
|
|
||||||
for (i = 0; i < NUM_PPP; i++) {
|
for (i = 0; i < NUM_PPP; i++) {
|
||||||
/* Initialize each protocol to the standard option set. */
|
/* Initialize each protocol to the standard option set. */
|
||||||
for (j = 0; (protp = ppp_protocols[j]) != NULL; ++j) {
|
for (j = 0; (protp = ppp_protocols[j]) != NULL; ++j) {
|
||||||
|
@ -1282,7 +1278,7 @@ GetMask(u32_t addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* class D nets are disallowed by bad_ip_adrs */
|
/* class D nets are disallowed by bad_ip_adrs */
|
||||||
mask = subnetMask | htonl(nmask);
|
mask = PP_HTONL(0xffffff00UL) | htonl(nmask);
|
||||||
|
|
||||||
/* XXX
|
/* XXX
|
||||||
* Scan through the system's network interfaces.
|
* Scan through the system's network interfaces.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user