mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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:
parent
efc286b7a6
commit
a3063fe014
@ -49,11 +49,11 @@ extern int Curl_getaddrinfo_a(const char *nodename,
|
||||
struct addrinfo **res);
|
||||
#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,
|
||||
curl_socklen_t salen,
|
||||
char *nodename, curl_socklen_t nodenamelen,
|
||||
char *servname, curl_socklen_t servnamelen,
|
||||
socklen_t salen,
|
||||
char *nodename, socklen_t nodenamelen,
|
||||
char *servname, socklen_t servnamelen,
|
||||
int flags);
|
||||
#define getnameinfo Curl_getnameinfo_a
|
||||
|
||||
|
@ -255,9 +255,9 @@ set_thread_string(localkey_t key, const char *s)
|
||||
|
||||
|
||||
int
|
||||
Curl_getnameinfo_a(const struct sockaddr *sa, curl_socklen_t salen,
|
||||
char *nodename, curl_socklen_t nodenamelen,
|
||||
char *servname, curl_socklen_t servnamelen,
|
||||
Curl_getnameinfo_a(const struct sockaddr *sa, socklen_t salen,
|
||||
char *nodename, socklen_t nodenamelen,
|
||||
char *servname, socklen_t servnamelen,
|
||||
int flags)
|
||||
{
|
||||
char *enodename = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user