Skip to content

Commit

Permalink
Merge pull request #8 from eProsima/fix_missing_const_rmw_wait
Browse files Browse the repository at this point in the history
add missing const
  • Loading branch information
dirk-thomas committed Dec 18, 2015
2 parents b755184 + fa154e2 commit 2f65836
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rmw_fastrtps_cpp/src/functions.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "rmw/allocators.h"
#include <rmw/rmw.h>
#include <rmw/error_handling.h>
#include <rosidl_typesupport_introspection_cpp/identifier.hpp>
Expand Down Expand Up @@ -279,7 +280,11 @@ extern "C"
return NULL;
}

rmw_node_t *node_handle = new rmw_node_t;
rmw_node_t * node_handle = rmw_node_allocate();
if (!node_handle) {
RMW_SET_ERROR_MSG("failed to allocate rmw_node_t");
return NULL;
}
node_handle->implementation_identifier = eprosima_fastrtps_identifier;
node_handle->data = participant;

Expand Down Expand Up @@ -1468,7 +1473,7 @@ extern "C"
rmw_guard_conditions_t *guard_conditions,
rmw_services_t *services,
rmw_clients_t *clients,
rmw_time_t *wait_timeout)
const rmw_time_t *wait_timeout)
{
std::mutex conditionMutex;
std::condition_variable conditionVariable;
Expand Down

0 comments on commit 2f65836

Please sign in to comment.