File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,10 +249,11 @@ rmw_client_request_publisher_get_actual_qos(
249249 const rmw_client_t * client ,
250250 rmw_qos_profile_t * qos )
251251{
252- (void ) qos ;
252+ RMW_CHECK_ARGUMENT_FOR_NULL (client , RMW_RET_INVALID_ARGUMENT );
253+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
253254
254255 rmw_uxrce_client_t * custom_client = (rmw_uxrce_client_t * )client -> data ;
255- qos = & custom_client -> qos ;
256+ * qos = custom_client -> qos ;
256257
257258 return RMW_RET_OK ;
258259}
@@ -262,10 +263,11 @@ rmw_client_response_subscription_get_actual_qos(
262263 const rmw_client_t * client ,
263264 rmw_qos_profile_t * qos )
264265{
265- (void ) qos ;
266+ RMW_CHECK_ARGUMENT_FOR_NULL (client , RMW_RET_INVALID_ARGUMENT );
267+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
266268
267269 rmw_uxrce_client_t * custom_client = (rmw_uxrce_client_t * )client -> data ;
268- qos = & custom_client -> qos ;
270+ * qos = custom_client -> qos ;
269271
270272 return RMW_RET_OK ;
271273}
Original file line number Diff line number Diff line change @@ -282,10 +282,11 @@ rmw_publisher_get_actual_qos(
282282 const rmw_publisher_t * publisher ,
283283 rmw_qos_profile_t * qos )
284284{
285- (void ) qos ;
285+ RMW_CHECK_ARGUMENT_FOR_NULL (publisher , RMW_RET_INVALID_ARGUMENT );
286+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
286287
287288 rmw_uxrce_publisher_t * custom_publisher = (rmw_uxrce_publisher_t * )publisher -> data ;
288- qos = & custom_publisher -> qos ;
289+ * qos = custom_publisher -> qos ;
289290
290291 return RMW_RET_OK ;
291292}
Original file line number Diff line number Diff line change @@ -247,10 +247,11 @@ rmw_service_response_publisher_get_actual_qos(
247247 const rmw_service_t * service ,
248248 rmw_qos_profile_t * qos )
249249{
250- (void ) qos ;
250+ RMW_CHECK_ARGUMENT_FOR_NULL (service , RMW_RET_INVALID_ARGUMENT );
251+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
251252
252253 rmw_uxrce_service_t * custom_service = (rmw_uxrce_service_t * )service -> data ;
253- qos = & custom_service -> qos ;
254+ * qos = custom_service -> qos ;
254255
255256 return RMW_RET_OK ;
256257}
@@ -260,10 +261,11 @@ rmw_service_request_subscription_get_actual_qos(
260261 const rmw_service_t * service ,
261262 rmw_qos_profile_t * qos )
262263{
263- (void ) qos ;
264+ RMW_CHECK_ARGUMENT_FOR_NULL (service , RMW_RET_INVALID_ARGUMENT );
265+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
264266
265267 rmw_uxrce_service_t * custom_service = (rmw_uxrce_service_t * )service -> data ;
266- qos = & custom_service -> qos ;
268+ * qos = custom_service -> qos ;
267269
268270 return RMW_RET_OK ;
269271}
Original file line number Diff line number Diff line change @@ -277,10 +277,11 @@ rmw_subscription_get_actual_qos(
277277 const rmw_subscription_t * subscription ,
278278 rmw_qos_profile_t * qos )
279279{
280- (void ) qos ;
280+ RMW_CHECK_ARGUMENT_FOR_NULL (subscription , RMW_RET_INVALID_ARGUMENT );
281+ RMW_CHECK_ARGUMENT_FOR_NULL (qos , RMW_RET_INVALID_ARGUMENT );
281282
282283 rmw_uxrce_subscription_t * custom_subscription = (rmw_uxrce_subscription_t * )subscription -> data ;
283- qos = & custom_subscription -> qos ;
284+ * qos = custom_subscription -> qos ;
284285
285286 return RMW_RET_OK ;
286287}
You can’t perform that action at this time.
0 commit comments