mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-31 15:04:12 +08:00
patch by Bostjan Meglic: fixed bug #35809: PPP GetMask(): Compiler warning on big endian, possible bug on little endian system
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user