Skip to content

Commit

Permalink
update(sinsp/ifinfo): make overloaded addr_to_string static
Browse files Browse the repository at this point in the history
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
2 people authored and poiana committed Aug 19, 2024
1 parent 8eac96e commit f19c71a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion userspace/libsinsp/ifinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion userspace/libsinsp/ifinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f19c71a

Please sign in to comment.