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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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

+2 −1
Original line number Diff line number Diff line
@@ -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