Skip to content

Commit d0596d1

Browse files
committed
Add comments and more formatting
1 parent 70f3c80 commit d0596d1

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

core/federated/RTI/main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,7 @@ int main(int argc, const char* argv[]) {
339339
}
340340

341341
lf_print("Starting RTI for a total of %d federates, with %d being transient, in federation ID %s",
342-
rti.base.number_of_scheduling_nodes, rti.number_of_transient_federates,
343-
344-
rti.federation_id);
345-
342+
rti.base.number_of_scheduling_nodes, rti.number_of_transient_federates, rti.federation_id);
346343
assert(rti.base.number_of_scheduling_nodes < UINT16_MAX);
347344

348345
// Allocate memory for the federates

core/federated/RTI/rti_remote.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ typedef struct federate_info_t {
7979
// tag grant
8080
lf_thread_t pending_provisional_grant_thread_id; // The ID of the thread handling
8181
// the pending provitional tag grant
82-
8382
} federate_info_t;
8483

8584
/**
@@ -188,7 +187,7 @@ typedef struct rti_remote_t {
188187
int32_t number_of_connected_transient_federates;
189188

190189
/**
191-
*
190+
* Indicates the life cycle phase of the federation.
192191
*/
193192
federation_life_cycle_phase phase;
194193
} rti_remote_t;

core/federated/federate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ static void handle_stop_granted_message() {
13561356
}
13571357

13581358
/**
1359-
* Handle a MSG_TYPE_STOP message from the RTI.
1359+
* @brief Handle a MSG_TYPE_STOP message from the RTI.
13601360
*
13611361
* This function simply calls lf_stop().
13621362
*/

0 commit comments

Comments
 (0)