Skip to content

Commit

Permalink
Merge pull request #23 from skliper/fix22-static_analysis
Browse files Browse the repository at this point in the history
Fix #22, Resolve strict cppcheck warnings
  • Loading branch information
astrogeco authored May 11, 2022
2 parents bb70184 + efe5533 commit 3a8d00a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions fsw/src/fm_cmd_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ bool FM_VerifyFileExists(char *Filename, uint32 BufferSize, uint32 EventID, cons
*
* \par Assumptions, External Events, and Notes:
*
* \param [in] Name Pointer to buffer containing name
* \param [in] Filename Pointer to buffer containing name
* \param [in] BufferSize Size of name character buffer
* \param [in] EventID Error event ID (command specific)
* \param [in] CmdText Error event text (command specific)
Expand All @@ -211,7 +211,7 @@ bool FM_VerifyFileExists(char *Filename, uint32 BufferSize, uint32 EventID, cons
*
* \sa #FM_GetFilenameState
*/
bool FM_VerifyFileNoExist(char *Name, uint32 BufferSize, uint32 EventID, const char *CmdText);
bool FM_VerifyFileNoExist(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText);

/**
* \brief Verify File Is Not Open Function
Expand All @@ -222,7 +222,7 @@ bool FM_VerifyFileNoExist(char *Name, uint32 BufferSize, uint32 EventID, const c
*
* \par Assumptions, External Events, and Notes:
*
* \param [in] Name Pointer to buffer containing name
* \param [in] Filename Pointer to buffer containing name
* \param [in] BufferSize Size of name character buffer
* \param [in] EventID Error event ID (command specific)
* \param [in] CmdText Error event text (command specific)
Expand All @@ -233,7 +233,7 @@ bool FM_VerifyFileNoExist(char *Name, uint32 BufferSize, uint32 EventID, const c
*
* \sa #FM_GetFilenameState
*/
bool FM_VerifyFileNotOpen(char *Name, uint32 BufferSize, uint32 EventID, const char *CmdText);
bool FM_VerifyFileNotOpen(char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText);

/**
* \brief Verify Directory Exists Function
Expand Down
4 changes: 2 additions & 2 deletions fsw/src/fm_tbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

int32 FM_TableInit(void)
{
int32 Status = CFE_SUCCESS;
int32 Status;

/* Initialize file system free space table pointer */
FM_GlobalData.FreeSpaceTablePtr = (FM_FreeSpaceTable_t *)NULL;
Expand Down Expand Up @@ -188,7 +188,7 @@ int32 FM_ValidateTable(FM_FreeSpaceTable_t *TablePtr)

void FM_AcquireTablePointers(void)
{
int32 Status = CFE_TBL_ERR_NEVER_LOADED;
int32 Status;

/* Allow cFE an opportunity to make table updates */
CFE_TBL_Manage(FM_GlobalData.FreeSpaceTableHandle);
Expand Down
4 changes: 2 additions & 2 deletions fsw/src/fm_tbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ int32 FM_TableInit(void);
*
* \par Assumptions, External Events, and Notes:
*
* \param [in] TableData - Pointer to table data for verification.
* \param [in] TablePtr - Pointer to table data for verification.
*
* \return Validation status
* \retval #CFE_SUCCESS \copydoc CFE_SUCCESS
* \retval #FM_TABLE_VALIDATION_ERR \copybrief FM_TABLE_VALIDATION_ERR
*
* \sa /FM_AppInit
*/
int32 FM_ValidateTable(FM_FreeSpaceTable_t *TableData);
int32 FM_ValidateTable(FM_FreeSpaceTable_t *TablePtr);

/**
* \brief Acquire Table Data Pointer Function
Expand Down

0 comments on commit 3a8d00a

Please sign in to comment.