From b50a3a7717978ca70ddbc919b8cfb8d1e7ce9d5e Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 14 Mar 2023 14:07:41 +1000 Subject: [PATCH] Fix #78, Split up multiple-variable declaration statements --- fsw/src/sc_app.c | 3 ++- unit-test/sc_loads_tests.c | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/fsw/src/sc_app.c b/fsw/src/sc_app.c index c9ad781..68cf884 100644 --- a/fsw/src/sc_app.c +++ b/fsw/src/sc_app.c @@ -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]; diff --git a/unit-test/sc_loads_tests.c b/unit-test/sc_loads_tests.c index 6f83be8..33016d0 100644 --- a/unit-test/sc_loads_tests.c +++ b/unit-test/sc_loads_tests.c @@ -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)); @@ -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)); @@ -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)); @@ -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();