Skip to content

Commit

Permalink
fix(libsinsp): modify switch case
Browse files Browse the repository at this point in the history
Signed-off-by: Everett Badeaux <[email protected]>
  • Loading branch information
ecbadeaux authored and poiana committed Jan 15, 2024
1 parent 8f4598a commit b993f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userspace/libsinsp/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ const char* sinsp_evt::get_param_as_str(uint32_t id, OUT const char** resolved_s
break;
case PT_SOCKADDR:
sockfamily = param->m_val[0];
if(sockfamily == AF_UNIX)
if(sockfamily == PPM_AF_UNIX)
{
ASSERT(param->m_len > 1);

Expand Down Expand Up @@ -1247,7 +1247,7 @@ const char* sinsp_evt::get_param_as_str(uint32_t id, OUT const char** resolved_s
m_paramstr_storage.size(),
"INVALID IPv6");
}
else if(sockfamily == AF_UNIX)
else if(sockfamily == PPM_AF_UNIX)
{
ASSERT(param->m_len > 17);

Expand Down

0 comments on commit b993f6d

Please sign in to comment.