Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 85471:d37e1d846fe3
Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and
already appears without #ifdef a couple lines above).
| author | Charles-François Natali <cf.natali@gmail.com> |
|---|---|
| date | Sat, 31 Aug 2013 14:48:25 +0200 |
| parents | ef889c3d5dc6 |
| children | 540a9c69c2ea |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Aug 31 14:40:49 2013 +0200 +++ b/Modules/socketmodule.c Sat Aug 31 14:48:25 2013 +0200 @@ -4940,7 +4940,7 @@ /* special-case this address as inet_addr might return INADDR_NONE * for this */ if (strcmp(ip_addr, "255.255.255.255") == 0) { - packed_addr = 0xFFFFFFFF; + packed_addr = INADDR_BROADCAST; } else { packed_addr = inet_addr(ip_addr);
