patch by Bostjan Meglic: fixed bug #35809: PPP GetMask(): Compiler warning on big endian, possible bug on little endian system
diff --git a/CHANGELOG b/CHANGELOG
index 824ce8c..933c2c8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -62,6 +62,10 @@
++ Bugfixes:
+ 2012-03-12: Simon Goldschmidt (patch by Bostjan Meglic)
+ * ppp.c: fixed bug #35809: PPP GetMask(): Compiler warning on big endian,
+ possible bug on little endian system
+
2012-02-23: Simon Goldschmidt
* etharp.c: fixed bug #35595: Impossible to send broadcast without a gateway
(introduced when fixing bug# 33551)
diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c
index 06d9699..8e8fae9 100644
--- a/src/netif/ppp/ppp.c
+++ b/src/netif/ppp/ppp.c
@@ -1272,7 +1272,7 @@
{
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)) {