From de0d67031a39bdf41a45bcb36edfdd6d60f163b9 Mon Sep 17 00:00:00 2001 From: Grzegorz Nosek Date: Tue, 7 Nov 2023 17:16:53 +0100 Subject: [PATCH] cleanup(scap): remove unused parameter from scap_fd_add Signed-off-by: Grzegorz Nosek --- userspace/libscap/scap.h | 2 +- userspace/libscap/scap_procs.c | 2 +- userspace/libsinsp/threadinfo.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/userspace/libscap/scap.h b/userspace/libscap/scap.h index 47eaae9772a..b3c752f5c93 100644 --- a/userspace/libscap/scap.h +++ b/userspace/libscap/scap.h @@ -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); diff --git a/userspace/libscap/scap_procs.c b/userspace/libscap/scap_procs.c index 119371f394d..05cacec9fcb 100644 --- a/userspace/libscap/scap_procs.c +++ b/userspace/libscap/scap_procs.c @@ -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; diff --git a/userspace/libsinsp/threadinfo.cpp b/userspace/libsinsp/threadinfo.cpp index cfc0949d145..753c3c9b12f 100644 --- a/userspace/libsinsp/threadinfo.cpp +++ b/userspace/libsinsp/threadinfo.cpp @@ -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"); }