Skip to content

Commit

Permalink
cleanup(scap): remove unused parameter from scap_fd_add
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Nosek <grzegorz.nosek@sysdig.com>
  • Loading branch information
gnosek committed Nov 7, 2023
1 parent 24c948e commit de0d670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion userspace/libscap/scap.h
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ int32_t scap_disable_dynamic_snaplen(scap_t* handle);
uint64_t scap_ftell(scap_t *handle);
void scap_fseek(scap_t *handle, uint64_t off);
int32_t scap_enable_tracers_capture(scap_t* handle);
int32_t scap_fd_add(scap_threadinfo* tinfo, uint64_t fd, scap_fdinfo* fdinfo);
int32_t scap_fd_add(scap_threadinfo* tinfo, scap_fdinfo* fdinfo);

int32_t scap_get_n_tracepoint_hit(scap_t* handle, long* ret);
int32_t scap_set_fullcapture_port_range(scap_t* handle, uint16_t range_start, uint16_t range_end);
Expand Down
2 changes: 1 addition & 1 deletion userspace/libscap/scap_procs.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void scap_proc_free_table(struct scap_proclist* proclist)
}
}

int32_t scap_fd_add(scap_threadinfo* tinfo, uint64_t fd, scap_fdinfo* fdinfo)
int32_t scap_fd_add(scap_threadinfo* tinfo, scap_fdinfo* fdinfo)
{
int32_t uth_status = SCAP_SUCCESS;

Expand Down
2 changes: 1 addition & 1 deletion userspace/libsinsp/threadinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,7 @@ void sinsp_thread_manager::dump_threads_to_file(scap_dumper_t* dumper)
//
// Add the new fd to the scap table.
//
if(scap_fd_add(&sctinfo, it->first, scfdinfo) != SCAP_SUCCESS)
if(scap_fd_add(&sctinfo, scfdinfo) != SCAP_SUCCESS)
{
throw sinsp_exception("Failed to add fd to hash table");
}
Expand Down

0 comments on commit de0d670

Please sign in to comment.