From 1b83cff03acdb1aab76b721602848ff437eb2f15 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 22 Jan 2020 12:07:52 -0800 Subject: [PATCH 1/2] fix return type of rcl_publisher_get_subscription_count --- rcl/include/rcl/publisher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcl/include/rcl/publisher.h b/rcl/include/rcl/publisher.h index ba5a1692d..37ff42d92 100644 --- a/rcl/include/rcl/publisher.h +++ b/rcl/include/rcl/publisher.h @@ -599,7 +599,7 @@ rcl_publisher_is_valid_except_context(const rcl_publisher_t * publisher); */ RCL_PUBLIC RCL_WARN_UNUSED -rmw_ret_t +rcl_ret_t rcl_publisher_get_subscription_count( const rcl_publisher_t * publisher, size_t * subscription_count); From cf5bcc752553404ad23a8c7ce11753db10fccd6f Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 22 Jan 2020 12:08:31 -0800 Subject: [PATCH 2/2] fix it in c file too --- rcl/src/rcl/publisher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcl/src/rcl/publisher.c b/rcl/src/rcl/publisher.c index cdd11ca36..567878f39 100644 --- a/rcl/src/rcl/publisher.c +++ b/rcl/src/rcl/publisher.c @@ -410,7 +410,7 @@ rcl_publisher_is_valid_except_context(const rcl_publisher_t * publisher) return true; } -rmw_ret_t +rcl_ret_t rcl_publisher_get_subscription_count( const rcl_publisher_t * publisher, size_t * subscription_count)