Skip to content

Commit 034bfbe

Browse files
committed
Update rcl API for preallocation (not used)
Passing NULL for the allocation objects retains Crystal behavior.
1 parent ab0c36f commit 034bfbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rcldotnet/rcldotnet.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int32_t native_rcl_wait_set(void *wait_set_handle, long timeout) {
116116
int32_t native_rcl_take(void *subscription_handle, void *message_handle) {
117117
rcl_subscription_t * subscription = (rcl_subscription_t *)subscription_handle;
118118

119-
rcl_ret_t ret = rcl_take(subscription, message_handle, NULL);
119+
rcl_ret_t ret = rcl_take(subscription, message_handle, NULL, NULL);
120120
return ret;
121121
}
122122

rcldotnet/rcldotnet_publisher.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void native_rcl_publish(void * publisher_handle, void * raw_ros_message)
2929
{
3030
rcl_publisher_t * publisher = (rcl_publisher_t *)publisher_handle;
3131

32-
rcl_ret_t ret = rcl_publish(publisher, raw_ros_message);
32+
rcl_ret_t ret = rcl_publish(publisher, raw_ros_message, NULL);
3333

3434
// TODO(esteve): handle error
3535
if (ret != RCL_RET_OK) {

0 commit comments

Comments
 (0)