SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners.
This commit is contained in:
parent
6968b056ef
commit
e0387ec8b5
|
@ -129,12 +129,12 @@ static struct gai_afd {
|
||||||
#define IN_LOOPBACKNET 127
|
#define IN_LOOPBACKNET 127
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int get_name Py_PROTO((const char *, struct gai_afd *,
|
static int get_name(const char *, struct gai_afd *,
|
||||||
struct addrinfo **, char *, struct addrinfo *,
|
struct addrinfo **, char *, struct addrinfo *,
|
||||||
int));
|
int);
|
||||||
static int get_addr Py_PROTO((const char *, int, struct addrinfo **,
|
static int get_addr(const char *, int, struct addrinfo **,
|
||||||
struct addrinfo *, int));
|
struct addrinfo *, int);
|
||||||
static int str_isnumber Py_PROTO((const char *));
|
static int str_isnumber(const char *);
|
||||||
|
|
||||||
static char *ai_errlist[] = {
|
static char *ai_errlist[] = {
|
||||||
"success.",
|
"success.",
|
||||||
|
|
|
@ -82,8 +82,8 @@ struct gni_sockinet {
|
||||||
#define ENI_SALEN 6
|
#define ENI_SALEN 6
|
||||||
|
|
||||||
/* forward declaration to make gcc happy */
|
/* forward declaration to make gcc happy */
|
||||||
int getnameinfo Py_PROTO((const struct sockaddr *, size_t, char *, size_t,
|
int getnameinfo(const struct sockaddr *, size_t, char *, size_t,
|
||||||
char *, size_t, int));
|
char *, size_t, int);
|
||||||
|
|
||||||
int
|
int
|
||||||
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
|
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
|
||||||
|
|
Loading…
Reference in New Issue