os400: use platform socklen_t in Curl_getnameinfo_a

Curl_getnameinfo_a() is prototyped before including curl.h as an
ASCII'fied wrapper for getnameinfo(), which itself is prototyped with
socklen_t arguments, so this should use the platform socklen_t and not
curl_socklen_t too.

Update setup-os400.h

Fixes #9811
Closes #9812
This commit is contained in:
jonrumsey 2022-10-27 11:47:02 +01:00 committed by Daniel Stenberg
parent efc286b7a6
commit a3063fe014
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 7 additions and 7 deletions

View File

@ -49,11 +49,11 @@ extern int Curl_getaddrinfo_a(const char *nodename,
struct addrinfo **res); struct addrinfo **res);
#define getaddrinfo Curl_getaddrinfo_a #define getaddrinfo Curl_getaddrinfo_a
/* Note socklen_t must be used as this is declared before curl_socklen_t */
extern int Curl_getnameinfo_a(const struct sockaddr *sa, extern int Curl_getnameinfo_a(const struct sockaddr *sa,
curl_socklen_t salen, socklen_t salen,
char *nodename, curl_socklen_t nodenamelen, char *nodename, socklen_t nodenamelen,
char *servname, curl_socklen_t servnamelen, char *servname, socklen_t servnamelen,
int flags); int flags);
#define getnameinfo Curl_getnameinfo_a #define getnameinfo Curl_getnameinfo_a

View File

@ -255,9 +255,9 @@ set_thread_string(localkey_t key, const char *s)
int int
Curl_getnameinfo_a(const struct sockaddr *sa, curl_socklen_t salen, Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen,
char *nodename, curl_socklen_t nodenamelen, char *nodename, socklen_t nodenamelen,
char *servname, curl_socklen_t servnamelen, char *servname, socklen_t servnamelen,
int flags) int flags)
{ {
char *enodename = NULL; char *enodename = NULL;