Skip to content

Commit

Permalink
Merge pull request #79 from thnkslprpt/fix-78-split-up-multiple-varia…
Browse files Browse the repository at this point in the history
…ble-declaration-statements

Fix #78, Split up multiple-variable declaration statements
  • Loading branch information
dzbaker authored Jun 5, 2023
2 parents 44286cd + b50a3a7 commit 4362bcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion fsw/src/sc_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ CFE_Status_t SC_RegisterDumpOnlyTables(void)

CFE_Status_t SC_RegisterLoadableTables(void)
{
int i, j;
int i;
int j;
CFE_Status_t Result;
char TableName[CFE_MISSION_TBL_MAX_NAME_LENGTH];

Expand Down
12 changes: 8 additions & 4 deletions unit-test/sc_loads_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ void SC_LoadAts_Test_CmdRunOffEndOfBuffer(void)
size_t MsgSize;
int BufEntrySize;
int MaxBufEntries;
int i, j;
int i;
int j;

memset(&AtsInfoTbl, 0, sizeof(AtsInfoTbl));

Expand Down Expand Up @@ -348,7 +349,8 @@ void SC_LoadAts_Test_AtsBufferTooSmall(void)
size_t MsgSize2;
int BufEntrySize;
int MaxBufEntries;
int i, j;
int i;
int j;

memset(&AtsInfoTbl, 0, sizeof(AtsInfoTbl));

Expand Down Expand Up @@ -417,7 +419,8 @@ void SC_LoadAts_Test_AtsEntryOverflow(void)
size_t MsgSize2;
int BufEntrySize;
int MaxBufEntries;
int i, j;
int i;
int j;

memset(&AtsInfoTbl, 0, sizeof(AtsInfoTbl));
memset(&AtsTable, 0, sizeof(AtsTable));
Expand Down Expand Up @@ -477,7 +480,8 @@ void SC_LoadAts_Test_LoadExactlyBufferLength(void)
size_t MsgSize2;
int BufEntrySize;
int MaxBufEntries;
int i, j;
int i;
int j;

SC_InitTables();

Expand Down

0 comments on commit 4362bcb

Please sign in to comment.