mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +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 ***/
|
||||
/******************************/
|
||||
u_long subnetMask;
|
||||
|
||||
static PPPControl pppControl[NUM_PPP]; /* The PPP interface control blocks. */
|
||||
|
||||
/*
|
||||
@ -447,8 +445,6 @@ pppInit(void)
|
||||
|
||||
magicInit();
|
||||
|
||||
subnetMask = PP_HTONL(0xffffff00UL);
|
||||
|
||||
for (i = 0; i < NUM_PPP; i++) {
|
||||
/* Initialize each protocol to the standard option set. */
|
||||
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 */
|
||||
mask = subnetMask | htonl(nmask);
|
||||
mask = PP_HTONL(0xffffff00UL) | htonl(nmask);
|
||||
|
||||
/* XXX
|
||||
* Scan through the system's network interfaces.
|
||||
|
Loading…
x
Reference in New Issue
Block a user