@@ -91,31 +91,39 @@ rmw_create_subscription(
9191
9292 // Create topic
9393 custom_subscription -> topic .owner_node = custom_subscription -> owner_node ;
94- custom_subscription -> topic .topic_id = uxr_object_id (custom_node -> context -> id_topic ++ , UXR_TOPIC_ID );
94+ custom_subscription -> topic .topic_id = uxr_object_id (
95+ custom_node -> context -> id_topic ++ ,
96+ UXR_TOPIC_ID );
9597
96- const rosidl_message_type_support_t * type_support_xrce = get_message_typesupport_handle (type_support , ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_VALUE );
98+ const rosidl_message_type_support_t * type_support_xrce = get_message_typesupport_handle (
99+ type_support , ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_VALUE );
97100
98101 if (NULL == type_support_xrce ) {
99102 RMW_UROS_TRACE_MESSAGE ("Undefined type support" )
100103 custom_subscription = NULL ;
101104 goto fail ;
102105 }
103106
104- custom_subscription -> topic .type_support_callbacks .msg = (const message_type_support_callbacks_t * )type_support_xrce -> data ;
107+ custom_subscription -> topic .type_support_callbacks .msg =
108+ (const message_type_support_callbacks_t * )type_support_xrce -> data ;
105109
106110 if ((strlen (topic_name ) + 1 ) > sizeof (custom_subscription -> topic .topic_name )) {
107111 RMW_UROS_TRACE_MESSAGE ("failed to allocate string" )
108112 custom_subscription = NULL ;
109113 goto fail ;
110114 }
111- snprintf ((char * )custom_subscription -> topic .topic_name , sizeof (custom_subscription -> topic .topic_name ), "%s" , topic_name );
115+ snprintf (
116+ (char * )custom_subscription -> topic .topic_name ,
117+ sizeof (custom_subscription -> topic .topic_name ), "%s" , topic_name );
112118 rmw_subscription -> topic_name = custom_subscription -> topic .topic_name ;
113119
114120 static char full_topic_name [RMW_UXRCE_TOPIC_NAME_MAX_LENGTH ];
115121 static char type_name [RMW_UXRCE_TYPE_NAME_MAX_LENGTH ];
116122
117123 generate_topic_name (topic_name , full_topic_name , sizeof (full_topic_name ));
118- generate_type_name (custom_subscription -> topic .type_support_callbacks .msg , type_name , sizeof (type_name ));
124+ generate_type_name (
125+ custom_subscription -> topic .type_support_callbacks .msg , type_name ,
126+ sizeof (type_name ));
119127
120128 uint16_t topic_req = UXR_INVALID_REQUEST_ID ;
121129
0 commit comments