Kaydet (Commit) 24aa0417 authored tarafından Charles-François Natali's avatar Charles-François Natali

Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX and

already appears without #ifdef a couple lines above).
üst fcfb324e
......@@ -4940,7 +4940,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
/* 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment