Removed unnecessary global variable "subnetMask", which is only used in one function (GetMask)

This commit is contained in:
goldsimon 2012-03-12 16:42:18 +01:00
parent 2c9b3b35d1
commit 0e7df4b193

View File

@ -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.