]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Removed unnecessary global variable "subnetMask", which is only used in one function...
authorgoldsimon <goldsimon@gmx.de>
Mon, 12 Mar 2012 15:42:18 +0000 (16:42 +0100)
committergoldsimon <goldsimon@gmx.de>
Mon, 12 Mar 2012 15:42:18 +0000 (16:42 +0100)
src/netif/ppp/ppp.c

index 8e8fae9f9f441a77815dcab2d89f6cbaf0287ee6..0ba82f054e1bf476fb639dd6ebba6973e63d4bda 100644 (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.