Skip to content

Commit

Permalink
Make rmw_service_server_is_available return RMW_RET_INVALID_ARGUMENT (#…
Browse files Browse the repository at this point in the history
…496)

Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent 7fa805a commit 6a3a2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmw_cyclonedds_cpp/src/rmw_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5464,15 +5464,15 @@ extern "C" rmw_ret_t rmw_service_server_is_available(
const rmw_client_t * client,
bool * is_available)
{
RET_NULL(node);
RMW_CHECK_ARGUMENT_FOR_NULL(node, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
node, node->implementation_identifier,
eclipse_cyclonedds_identifier, return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);
RET_NULL(client);
RMW_CHECK_ARGUMENT_FOR_NULL(client, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
client, client->implementation_identifier,
eclipse_cyclonedds_identifier, return RMW_RET_INCORRECT_RMW_IMPLEMENTATION);
RET_NULL(is_available);
RMW_CHECK_ARGUMENT_FOR_NULL(is_available, RMW_RET_INVALID_ARGUMENT);
*is_available = false;

auto info = static_cast<CddsClient *>(client->data);
Expand Down

0 comments on commit 6a3a2f9

Please sign in to comment.