Skip to content

Commit

Permalink
Add comments and more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadliaJerad committed Mar 14, 2024
1 parent 70f3c80 commit d0596d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions core/federated/RTI/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,7 @@ int main(int argc, const char* argv[]) {
}

lf_print("Starting RTI for a total of %d federates, with %d being transient, in federation ID %s",
rti.base.number_of_scheduling_nodes, rti.number_of_transient_federates,

rti.federation_id);

rti.base.number_of_scheduling_nodes, rti.number_of_transient_federates, rti.federation_id);
assert(rti.base.number_of_scheduling_nodes < UINT16_MAX);

// Allocate memory for the federates
Expand Down
3 changes: 1 addition & 2 deletions core/federated/RTI/rti_remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ typedef struct federate_info_t {
// tag grant
lf_thread_t pending_provisional_grant_thread_id; // The ID of the thread handling
// the pending provitional tag grant

} federate_info_t;

/**
Expand Down Expand Up @@ -188,7 +187,7 @@ typedef struct rti_remote_t {
int32_t number_of_connected_transient_federates;

/**
*
* Indicates the life cycle phase of the federation.
*/
federation_life_cycle_phase phase;
} rti_remote_t;
Expand Down
2 changes: 1 addition & 1 deletion core/federated/federate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ static void handle_stop_granted_message() {
}

/**
* Handle a MSG_TYPE_STOP message from the RTI.
* @brief Handle a MSG_TYPE_STOP message from the RTI.
*
* This function simply calls lf_stop().
*/
Expand Down

0 comments on commit d0596d1

Please sign in to comment.