Commit 6c01b30f authored by Ramon Nou's avatar Ramon Nou Committed by Ramon Nou
Browse files

Disable function get_host_by_name (not used)

parent 91668525
......@@ -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
......
......@@ -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;
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment