mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-02 07:16:48 +01:00
Minor fixes to get_address code to fix build on solaris and freebsd. Also service doesnt need to be discovered here
This commit is contained in:
parent
78d24d3d01
commit
1824574f9b
@ -124,7 +124,6 @@ int zmq::tcp_listener_t::get_address (std::string &addr_)
|
||||
{
|
||||
struct sockaddr_storage ss;
|
||||
char host [NI_MAXHOST];
|
||||
char serv_info [NI_MAXSERV];
|
||||
int rc;
|
||||
std::stringstream address;
|
||||
|
||||
@ -135,7 +134,7 @@ int zmq::tcp_listener_t::get_address (std::string &addr_)
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc = getnameinfo ((struct sockaddr *) &ss, sizeof (ss), host, NI_MAXHOST, serv_info, NI_MAXSERV, NI_NUMERICHOST);
|
||||
rc = getnameinfo ((struct sockaddr *) &ss, sl, host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user