Skip to content

Commit

Permalink
SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnorwitz committed Feb 27, 2007
1 parent 6968b05 commit e0387ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Modules/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ static struct gai_afd {
#define IN_LOOPBACKNET 127
#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 *,
int));
static int get_addr Py_PROTO((const char *, int, struct addrinfo **,
struct addrinfo *, int));
static int str_isnumber Py_PROTO((const char *));
int);
static int get_addr(const char *, int, struct addrinfo **,
struct addrinfo *, int);
static int str_isnumber(const char *);

static char *ai_errlist[] = {
"success.",
Expand Down
4 changes: 2 additions & 2 deletions Modules/getnameinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ struct gni_sockinet {
#define ENI_SALEN 6

/* forward declaration to make gcc happy */
int getnameinfo Py_PROTO((const struct sockaddr *, size_t, char *, size_t,
char *, size_t, int));
int getnameinfo(const struct sockaddr *, size_t, char *, size_t,
char *, size_t, int);

int
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
Expand Down

0 comments on commit e0387ec

Please sign in to comment.