1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Avoid multiple instances of INADDR_NONE

By moving the definition from the header to the source we now only use
one instance for the entire app with a little saving in space.
This commit is contained in:
Baruch Even 2016-03-24 09:47:02 +02:00 committed by Nat Weerawan
parent 3663359c0b
commit 3136c61346
2 changed files with 2 additions and 1 deletions

View File

@ -112,3 +112,4 @@ String IPAddress::toString()
return String(szRet); return String(szRet);
} }
const IPAddress INADDR_NONE(0, 0, 0, 0);

View File

@ -87,6 +87,6 @@ class IPAddress: public Printable {
friend class DNSClient; friend class DNSClient;
}; };
const IPAddress INADDR_NONE(0, 0, 0, 0); extern const IPAddress INADDR_NONE;
#endif #endif