Skip to content

Commit

Permalink
cleanup(userspace): apply review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce and FedeDP committed Aug 3, 2023
1 parent dc70187 commit a3477e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions cmake/modules/libsinsp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ endif()
include(jsoncpp)
include(valijson)
include(re2)
if(NOT MINIMAL_BUILD)
include(zlib)
endif()

set(LIBSINSP_INCLUDE_DIRS ${LIBSINSP_DIR}/userspace/libsinsp ${LIBSINSP_DIR}/userspace/common ${LIBSCAP_INCLUDE_DIRS} ${DRIVER_CONFIG_DIR})
if(WITH_CHISEL)
Expand Down
2 changes: 0 additions & 2 deletions userspace/libscap/scap.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,11 @@ int32_t scap_init(scap_t* handle, scap_open_args* oargs)
if(strcmp(engine_name, SOURCE_PLUGIN_ENGINE) == 0)
{
vtable = &scap_source_plugin_engine;
#ifdef __linux__
if(oargs->mode == SCAP_MODE_LIVE)
{
platform = scap_linux_alloc_platform();
}
else
#endif // __linux__
{
platform = scap_generic_alloc_platform();
}
Expand Down

0 comments on commit a3477e5

Please sign in to comment.