mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
fixing various compilation errors
This commit is contained in:
1 parent
17216afe0f
commit
4b13fcac70
11 files changed
+112
-95
No files matched your search
+4
-3
@@ -18,11 +18,12 @@
|
||||
*/
|
||||
|
||||
#include "utils.h"
|
||||
#include "default_types.h"
|
||||
|
||||
namespace dht {
|
||||
|
||||
std::string
|
||||
dht::print_addr(const sockaddr* sa, socklen_t slen)
|
||||
print_addr(const sockaddr* sa, socklen_t slen)
|
||||
{
|
||||
char hbuf[NI_MAXHOST];
|
||||
char sbuf[NI_MAXSERV];
|
||||
@@ -40,13 +41,13 @@ dht::print_addr(const sockaddr* sa, socklen_t slen)
|
||||
}
|
||||
|
||||
std::string
|
||||
dht::print_addr(const sockaddr_storage& ss, socklen_t sslen)
|
||||
print_addr(const sockaddr_storage& ss, socklen_t sslen)
|
||||
{
|
||||
return print_addr((const sockaddr*)&ss, sslen);
|
||||
}
|
||||
|
||||
std::string
|
||||
dht::printAddr(const Address& addr) {
|
||||
printAddr(const Address& addr) {
|
||||
return print_addr((const sockaddr*)&addr.first, addr.second);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user