From c3eb33e930a43bb2d7737aa5dd07a18e9139f46f Mon Sep 17 00:00:00 2001 From: ymski <114902604+ymski@users.noreply.github.com> Date: Wed, 1 Nov 2023 12:44:11 +0900 Subject: [PATCH] Update CARET_trace/src/hooked_trace_points.cpp Co-authored-by: isp-uetsuki <35490433+isp-uetsuki@users.noreply.github.com> --- CARET_trace/src/hooked_trace_points.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CARET_trace/src/hooked_trace_points.cpp b/CARET_trace/src/hooked_trace_points.cpp index 8ea10fb3..f92764f6 100644 --- a/CARET_trace/src/hooked_trace_points.cpp +++ b/CARET_trace/src/hooked_trace_points.cpp @@ -290,10 +290,10 @@ rmw_ret_t rmw_publish_serialized_message( rmw_publisher_allocation_t * allocation) { serialized_message_addr = static_cast(serialized_message); - using functionT = int (*)(const void *, const void *, const void *); + using functionT = rmw_ret_t (*)(const void *, const void *, const void *); static void * orig_func = dlsym(RTLD_NEXT, __func__); - int dds_return = ((functionT)orig_func)(publisher, serialized_message, allocation); - return dds_return; + rmw_ret_t ret = ((functionT)orig_func)(publisher, serialized_message, allocation); + return ret; } // rclcpp::executors::SingleThreadedExecutor::SingleThreadedExecutor(rclcpp::ExecutorOptions const&)