diff --git a/userspace/libscap/scap.h b/userspace/libscap/scap.h index 47eaae9772..b3c752f5c9 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 119371f394..05cacec9fc 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 cfc0949d14..753c3c9b12 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"); }