Replace K&R function declarations with ANSI declarations (#114818)

This commit is contained in:
Max Bachmann 2025-03-11 13:06:36 +01:00 committed by GitHub
parent 6e5b9f3d00
commit 44c55c2356
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 25 deletions

View file

@ -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;