mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Replace K&R function declarations with ANSI declarations (#114818)
This commit is contained in:
parent
6e5b9f3d00
commit
44c55c2356
2 changed files with 6 additions and 25 deletions
|
@ -84,19 +84,9 @@ struct gni_sockinet {
|
|||
#define ENI_FAMILY 5
|
||||
#define ENI_SALEN 6
|
||||
|
||||
/* forward declaration to make gcc happy */
|
||||
int getnameinfo(const struct sockaddr *, size_t, char *, size_t,
|
||||
char *, size_t, int);
|
||||
|
||||
int
|
||||
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
|
||||
const struct sockaddr *sa;
|
||||
size_t salen;
|
||||
char *host;
|
||||
size_t hostlen;
|
||||
char *serv;
|
||||
size_t servlen;
|
||||
int flags;
|
||||
getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen,
|
||||
char *serv, size_t servlen, int flags)
|
||||
{
|
||||
struct gni_afd *gni_afd;
|
||||
struct servent *sp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue