bpo-8677: use PY_SSIZE_T_CLEAN in socketmodule.c (GH-12467)
This commit is contained in:
parent
c5a216e0b9
commit
e9a1dcb423
|
@ -99,6 +99,7 @@ Local naming conventions:
|
||||||
# pragma weak inet_aton
|
# pragma weak inet_aton
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define PY_SSIZE_T_CLEAN
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
#include "structmember.h"
|
#include "structmember.h"
|
||||||
|
|
||||||
|
@ -1414,7 +1415,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
|
||||||
a->sll_pkttype,
|
a->sll_pkttype,
|
||||||
a->sll_hatype,
|
a->sll_hatype,
|
||||||
a->sll_addr,
|
a->sll_addr,
|
||||||
a->sll_halen);
|
(Py_ssize_t)a->sll_halen);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_NETPACKET_PACKET_H && SIOCGIFNAME */
|
#endif /* HAVE_NETPACKET_PACKET_H && SIOCGIFNAME */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue