Skip to content

Commit

Permalink
Update CARET_trace/src/hooked_trace_points.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: isp-uetsuki <[email protected]>
  • Loading branch information
ymski and isp-uetsuki authored Nov 1, 2023
1 parent 96d8481 commit c3eb33e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CARET_trace/src/hooked_trace_points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ rmw_ret_t rmw_publish_serialized_message(
rmw_publisher_allocation_t * allocation)
{
serialized_message_addr = static_cast<const void *>(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&)
Expand Down

0 comments on commit c3eb33e

Please sign in to comment.