Loading include/common/rpc/rpc_util.hpp +2 −0 Original line number Diff line number Diff line Loading @@ -44,8 +44,10 @@ bool_to_merc_bool(bool state); std::string get_my_hostname(bool short_hostname = false); #ifdef ENABLE_UNUSED_FUNCTIONS std::string get_host_by_name(const std::string& hostname); #endif } // namespace gkfs::rpc Loading src/common/rpc/rpc_util.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ get_my_hostname(bool short_hostname) { return ""s; } #ifdef ENABLE_UNUSED_FUNCTIONS string get_host_by_name(const string& hostname) { int err = 0; Loading Loading @@ -102,5 +102,6 @@ get_host_by_name(const string& hostname) { freeaddrinfo(addr); return addr_str; } #endif } // namespace gkfs::rpc No newline at end of file Loading
include/common/rpc/rpc_util.hpp +2 −0 Original line number Diff line number Diff line Loading @@ -44,8 +44,10 @@ bool_to_merc_bool(bool state); std::string get_my_hostname(bool short_hostname = false); #ifdef ENABLE_UNUSED_FUNCTIONS std::string get_host_by_name(const std::string& hostname); #endif } // namespace gkfs::rpc Loading
src/common/rpc/rpc_util.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ get_my_hostname(bool short_hostname) { return ""s; } #ifdef ENABLE_UNUSED_FUNCTIONS string get_host_by_name(const string& hostname) { int err = 0; Loading Loading @@ -102,5 +102,6 @@ get_host_by_name(const string& hostname) { freeaddrinfo(addr); return addr_str; } #endif } // namespace gkfs::rpc No newline at end of file