diff --git a/userspace/libsinsp/ifinfo.cpp b/userspace/libsinsp/ifinfo.cpp index 4587824425..fc58b1bbb0 100644 --- a/userspace/libsinsp/ifinfo.cpp +++ b/userspace/libsinsp/ifinfo.cpp @@ -69,7 +69,7 @@ std::string sinsp_ipv4_ifinfo::to_string() const return std::string(s); } -std::string sinsp_ipv4_ifinfo::addr_to_string(const uint32_t addr) const +std::string sinsp_ipv4_ifinfo::addr_to_string(const uint32_t addr) { char str_addr[16]; convert_to_string(str_addr, sizeof(str_addr), addr); diff --git a/userspace/libsinsp/ifinfo.h b/userspace/libsinsp/ifinfo.h index ed42dc399a..0968c3a281 100644 --- a/userspace/libsinsp/ifinfo.h +++ b/userspace/libsinsp/ifinfo.h @@ -41,7 +41,7 @@ class SINSP_PUBLIC sinsp_ipv4_ifinfo sinsp_ipv4_ifinfo(uint32_t addr, uint32_t netmask, uint32_t bcast, const char* name); std::string to_string() const; - std::string addr_to_string(const uint32_t addr) const; + static std::string addr_to_string(const uint32_t addr); std::string addr_to_string() const; std::string address() const;