]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/netif/ppp/ppp.c
patch by Bostjan Meglic: fixed bug #35809: PPP GetMask(): Compiler warning on big...
[pes-rpp/rpp-lwip.git] / src / netif / ppp / ppp.c
index 06d9699faade14bd890a3f0fa6e2486b975d6b69..8e8fae9f9f441a77815dcab2d89f6cbaf0287ee6 100644 (file)
@@ -1272,7 +1272,7 @@ GetMask(u32_t addr)
 {
   u32_t mask, nmask;
 
-  htonl(addr);
+  addr = htonl(addr);
   if (IP_CLASSA(addr)) { /* determine network mask for address class */
     nmask = IP_CLASSA_NET;
   } else if (IP_CLASSB(addr)) {