diff --git a/fsw/src/fm_app.c b/fsw/src/fm_app.c index 5023cbb..7e08064 100644 --- a/fsw/src/fm_app.c +++ b/fsw/src/fm_app.c @@ -65,7 +65,7 @@ void FM_AppMain(void) { uint32 RunStatus = CFE_ES_RunStatus_APP_RUN; CFE_SB_Buffer_t *BufPtr = NULL; - int32 Result = CFE_SUCCESS; + int32 Result; /* Performance Log (start time counter) */ CFE_ES_PerfLogEntry(FM_APPMAIN_PERF_ID); @@ -167,7 +167,7 @@ void FM_AppMain(void) int32 FM_AppInit(void) { const char *ErrText = "Initialization error:"; - int32 Result = CFE_SUCCESS; + int32 Result; /* Initialize global data */ memset(&FM_GlobalData, 0, sizeof(FM_GlobalData)); @@ -390,7 +390,7 @@ void FM_ProcessCmd(const CFE_SB_Buffer_t *BufPtr) void FM_ReportHK(const CFE_MSG_CommandHeader_t *Msg) { const char *CmdText = "HK Request"; - bool Result = true; + bool Result; /* Verify command packet length */ Result = FM_IsValidCmdPktLength(&Msg->Msg, sizeof(FM_HousekeepingCmd_t), FM_HK_REQ_ERR_EID, CmdText); diff --git a/fsw/src/fm_child.c b/fsw/src/fm_child.c index bba0e61..914ddf2 100644 --- a/fsw/src/fm_child.c +++ b/fsw/src/fm_child.c @@ -58,8 +58,8 @@ int32 FM_ChildInit(void) { int32 TaskTextLen = OS_MAX_PATH_LEN; char TaskText[OS_MAX_PATH_LEN] = "\0"; - int32 Result = CFE_SUCCESS; - uint32 TaskEID = 0; + int32 Result; + uint32 TaskEID = 0; /* Create counting semaphore (given by parent to wake-up child) */ Result = OS_CountSemCreate(&FM_GlobalData.ChildSemaphore, FM_CHILD_SEM_NAME, 0, 0); @@ -279,8 +279,8 @@ void FM_ChildProcess(void) void FM_ChildCopyCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Copy File"; - int32 OS_Status = OS_SUCCESS; + const char *CmdText = "Copy File"; + int32 OS_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -319,8 +319,8 @@ void FM_ChildCopyCmd(const FM_ChildQueueEntry_t *CmdArgs) void FM_ChildMoveCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Move File"; - int32 OS_Status = OS_SUCCESS; + const char *CmdText = "Move File"; + int32 OS_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -358,8 +358,8 @@ void FM_ChildMoveCmd(const FM_ChildQueueEntry_t *CmdArgs) void FM_ChildRenameCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Rename File"; - int32 OS_Status = OS_SUCCESS; + const char *CmdText = "Rename File"; + int32 OS_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -397,8 +397,8 @@ void FM_ChildRenameCmd(const FM_ChildQueueEntry_t *CmdArgs) void FM_ChildDeleteCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Delete File"; - int32 OS_Status = OS_SUCCESS; + const char *CmdText = "Delete File"; + int32 OS_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -439,7 +439,7 @@ void FM_ChildDeleteAllCmd(FM_ChildQueueEntry_t *CmdArgs) const char *CmdText = "Delete All Files"; osal_id_t DirId = OS_OBJECT_ID_UNDEFINED; os_dirent_t DirEntry; - int32 OS_Status = OS_SUCCESS; + int32 OS_Status; uint32 FilenameState = FM_NAME_IS_INVALID; uint32 NameLength = 0; uint32 DeleteCount = 0; @@ -587,8 +587,8 @@ void FM_ChildDeleteAllCmd(FM_ChildQueueEntry_t *CmdArgs) void FM_ChildDecompressCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Decompress File"; - int32 CFE_Status = CFE_SUCCESS; + const char *CmdText = "Decompress File"; + int32 CFE_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -634,11 +634,11 @@ void FM_ChildConcatCmd(const FM_ChildQueueEntry_t *CmdArgs) bool OpenedSource2 = false; bool OpenedTgtFile = false; int32 LoopCount = 0; - int32 OS_Status = OS_SUCCESS; - osal_id_t FileHandleSrc = OS_OBJECT_ID_UNDEFINED; - osal_id_t FileHandleTgt = OS_OBJECT_ID_UNDEFINED; - int32 BytesRead = 0; - int32 BytesWritten = 0; + int32 OS_Status; + osal_id_t FileHandleSrc = OS_OBJECT_ID_UNDEFINED; + osal_id_t FileHandleTgt = OS_OBJECT_ID_UNDEFINED; + int32 BytesRead = 0; + int32 BytesWritten = 0; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -959,8 +959,8 @@ void FM_ChildFileInfoCmd(FM_ChildQueueEntry_t *CmdArgs) void FM_ChildCreateDirCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Create Directory"; - int32 OS_Status = OS_SUCCESS; + const char *CmdText = "Create Directory"; + int32 OS_Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -1002,7 +1002,7 @@ void FM_ChildDeleteDirCmd(const FM_ChildQueueEntry_t *CmdArgs) bool RemoveTheDir = true; osal_id_t DirId = OS_OBJECT_ID_UNDEFINED; os_dirent_t DirEntry; - int32 OS_Status = OS_SUCCESS; + int32 OS_Status; memset(&DirEntry, 0, sizeof(DirEntry)); @@ -1076,11 +1076,11 @@ void FM_ChildDeleteDirCmd(const FM_ChildQueueEntry_t *CmdArgs) void FM_ChildDirListFileCmd(const FM_ChildQueueEntry_t *CmdArgs) { - const char *CmdText = "Directory List to File"; - bool Result = false; + const char *CmdText = "Directory List to File"; + bool Result; osal_id_t FileHandle = OS_OBJECT_ID_UNDEFINED; osal_id_t DirId = OS_OBJECT_ID_UNDEFINED; - int32 Status = 0; + int32 Status; /* Report current child task activity */ FM_GlobalData.ChildCurrentCC = CmdArgs->CommandCode; @@ -1138,12 +1138,12 @@ void FM_ChildDirListPktCmd(const FM_ChildQueueEntry_t *CmdArgs) { const char * CmdText = "Directory List to Packet"; char LogicalName[OS_MAX_PATH_LEN] = "\0"; - bool StillProcessing = true; - osal_id_t DirId = OS_OBJECT_ID_UNDEFINED; + bool StillProcessing; + osal_id_t DirId = OS_OBJECT_ID_UNDEFINED; os_dirent_t DirEntry; - int32 ListIndex = 0; - FM_DirListEntry_t *ListEntry = NULL; - int32 PathLength = 0; + int32 ListIndex = 0; + FM_DirListEntry_t *ListEntry = NULL; + int32 PathLength; int32 EntryLength = 0; int32 FilesTillSleep = FM_CHILD_STAT_SLEEP_FILECOUNT; int32 Status; @@ -1267,8 +1267,8 @@ void FM_ChildDirListPktCmd(const FM_ChildQueueEntry_t *CmdArgs) /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ void FM_ChildSetPermissionsCmd(const FM_ChildQueueEntry_t *CmdArgs) { - int32 OS_Status = OS_SUCCESS; - const char *CmdText = "Set Permissions"; + int32 OS_Status; + const char *CmdText = "Set Permissions"; OS_Status = OS_chmod(CmdArgs->Source1, CmdArgs->Mode); @@ -1308,7 +1308,7 @@ bool FM_ChildDirListFileInit(osal_id_t *FileHandlePtr, const char *Directory, co CFE_FS_Header_t FileHeader; osal_id_t FileHandle = OS_OBJECT_ID_UNDEFINED; int32 BytesWritten = 0; - int32 Status = 0; + int32 Status; /* Initialize the standard cFE File Header for the Directory Listing File */ CFE_FS_InitHeader(&FileHeader, CmdText, FM_DIR_LIST_FILE_SUBTYPE); @@ -1384,17 +1384,17 @@ bool FM_ChildDirListFileInit(osal_id_t *FileHandlePtr, const char *Directory, co void FM_ChildDirListFileLoop(osal_id_t DirId, osal_id_t FileHandle, const char *Directory, const char *DirWithSep, const char *Filename, uint8 getSizeTimeMode) { - const char * CmdText = "Directory List to File"; - int32 WriteLength = sizeof(FM_DirListEntry_t); - bool ReadingDirectory = true; - bool CommandResult = true; - uint32 DirEntries = 0; - uint32 FileEntries = 0; - int32 EntryLength = 0; - int32 PathLength = 0; - int32 BytesWritten = 0; - int32 FilesTillSleep = FM_CHILD_STAT_SLEEP_FILECOUNT; - int32 Status = 0; + const char * CmdText = "Directory List to File"; + int32 WriteLength = sizeof(FM_DirListEntry_t); + bool ReadingDirectory = true; + bool CommandResult = true; + uint32 DirEntries = 0; + uint32 FileEntries = 0; + int32 EntryLength = 0; + int32 PathLength; + int32 BytesWritten = 0; + int32 FilesTillSleep = FM_CHILD_STAT_SLEEP_FILECOUNT; + int32 Status; char TempName[OS_MAX_PATH_LEN] = "\0"; os_dirent_t DirEntry; FM_DirListEntry_t DirListData; @@ -1521,7 +1521,7 @@ void FM_ChildDirListFileLoop(osal_id_t DirId, osal_id_t FileHandle, const char * int32 FM_ChildSizeTimeMode(const char *Filename, uint32 *FileSize, uint32 *FileTime, uint32 *FileMode) { - int32 Result = OS_SUCCESS; + int32 Result; os_fstat_t FileStatus; memset(&FileStatus, 0, sizeof(FileStatus)); diff --git a/fsw/src/fm_cmd_utils.c b/fsw/src/fm_cmd_utils.c index 532dadd..7c68137 100644 --- a/fsw/src/fm_cmd_utils.c +++ b/fsw/src/fm_cmd_utils.c @@ -273,10 +273,10 @@ uint32 FM_VerifyNameValid(const char *Name, uint32 BufferSize, uint32 EventID, c bool FM_VerifyFileState(FM_File_States State, const char *Filename, uint32 BufferSize, uint32 EventID, const char *CmdText) { - bool Result = false; - uint32 FilenameState = FM_NAME_IS_INVALID; - uint32 ErrorCode = FM_FNAME_INVALID_EID_OFFSET; - const char *ErrorDesc = ""; + bool Result = false; + uint32 FilenameState; + uint32 ErrorCode = FM_FNAME_INVALID_EID_OFFSET; + const char *ErrorDesc = ""; char LocalFile[1 + OS_MAX_PATH_LEN]; /* Get state of the filename */ @@ -532,9 +532,7 @@ void FM_AppendPathSep(char *Directory, uint32 BufferSize) ** the string is both non-zero and less than the size ** of the string buffer. */ - uint32 StringLength = 0; - - StringLength = strlen(Directory); + uint32 StringLength = strlen(Directory); /* Do nothing if string already ends with a path separator */ if ((StringLength != 0) && (Directory[StringLength - 1] != '/')) diff --git a/fsw/src/fm_cmds.c b/fsw/src/fm_cmds.c index 872e766..cd61bd2 100644 --- a/fsw/src/fm_cmds.c +++ b/fsw/src/fm_cmds.c @@ -47,8 +47,8 @@ bool FM_NoopCmd(const CFE_SB_Buffer_t *BufPtr) { - const char *CmdText = "No-op"; - bool CommandResult = false; + const char *CmdText = "No-op"; + bool CommandResult; /* Verify message length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_NoopCmd_t), FM_NOOP_PKT_ERR_EID, CmdText); @@ -71,8 +71,8 @@ bool FM_NoopCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_ResetCountersCmd(const CFE_SB_Buffer_t *BufPtr) { - const char *CmdText = "Reset Counters"; - bool CommandResult = false; + const char *CmdText = "Reset Counters"; + bool CommandResult; /* Verify message length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_ResetCmd_t), FM_RESET_PKT_ERR_EID, CmdText); @@ -102,10 +102,10 @@ bool FM_ResetCountersCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_CopyFileCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_CopyFileCmd_t * CmdPtr = (FM_CopyFileCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Copy File"; - bool CommandResult = false; + FM_CopyFileCmd_t * CmdPtr = (FM_CopyFileCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Copy File"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_CopyFileCmd_t), FM_COPY_PKT_ERR_EID, CmdText); @@ -169,10 +169,10 @@ bool FM_CopyFileCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_MoveFileCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_MoveFileCmd_t * CmdPtr = (FM_MoveFileCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Move File"; - bool CommandResult = false; + FM_MoveFileCmd_t * CmdPtr = (FM_MoveFileCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Move File"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_MoveFileCmd_t), FM_MOVE_PKT_ERR_EID, CmdText); @@ -237,10 +237,10 @@ bool FM_MoveFileCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_RenameFileCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_RenameFileCmd_t * CmdPtr = (FM_RenameFileCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Rename File"; - bool CommandResult = false; + FM_RenameFileCmd_t * CmdPtr = (FM_RenameFileCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Rename File"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_RenameFileCmd_t), FM_RENAME_PKT_ERR_EID, CmdText); @@ -292,10 +292,10 @@ bool FM_RenameFileCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_DeleteFileCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_DeleteFileCmd_t * CmdPtr = (FM_DeleteFileCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Delete File"; - bool CommandResult = false; + FM_DeleteFileCmd_t * CmdPtr = (FM_DeleteFileCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Delete File"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_DeleteFileCmd_t), FM_DELETE_PKT_ERR_EID, CmdText); @@ -342,7 +342,7 @@ bool FM_DeleteAllFilesCmd(const CFE_SB_Buffer_t *BufPtr) const char * CmdText = "Delete All Files"; char DirWithSep[OS_MAX_PATH_LEN] = "\0"; FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + bool CommandResult; /* Verify message length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_DeleteAllCmd_t), FM_DELETE_ALL_PKT_ERR_EID, CmdText); @@ -393,10 +393,10 @@ bool FM_DeleteAllFilesCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_DecompressFileCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_DecompressCmd_t * CmdPtr = (FM_DecompressCmd_t *)BufPtr; - const char * CmdText = "Decompress File"; - FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + FM_DecompressCmd_t * CmdPtr = (FM_DecompressCmd_t *)BufPtr; + const char * CmdText = "Decompress File"; + FM_ChildQueueEntry_t *CmdArgs = NULL; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_DecompressCmd_t), FM_DECOM_PKT_ERR_EID, CmdText); @@ -446,10 +446,10 @@ bool FM_DecompressFileCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_ConcatFilesCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_ConcatCmd_t * CmdPtr = (FM_ConcatCmd_t *)BufPtr; - const char * CmdText = "Concat Files"; - FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + FM_ConcatCmd_t * CmdPtr = (FM_ConcatCmd_t *)BufPtr; + const char * CmdText = "Concat Files"; + FM_ChildQueueEntry_t *CmdArgs = NULL; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_ConcatCmd_t), FM_CONCAT_PKT_ERR_EID, CmdText); @@ -507,10 +507,10 @@ bool FM_ConcatFilesCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_GetFileInfoCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_GetFileInfoCmd_t * CmdPtr = (FM_GetFileInfoCmd_t *)BufPtr; - const char * CmdText = "Get File Info"; - FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + FM_GetFileInfoCmd_t * CmdPtr = (FM_GetFileInfoCmd_t *)BufPtr; + const char * CmdText = "Get File Info"; + FM_ChildQueueEntry_t *CmdArgs = NULL; + bool CommandResult; uint32 FilenameState = FM_NAME_IS_INVALID; /* Verify command packet length */ @@ -568,9 +568,9 @@ bool FM_GetFileInfoCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_GetOpenFilesCmd(const CFE_SB_Buffer_t *BufPtr) { - const char *CmdText = "Get Open Files"; - bool CommandResult = false; - uint32 NumOpenFiles = 0; + const char *CmdText = "Get Open Files"; + bool CommandResult; + uint32 NumOpenFiles; /* Verify command packet length */ CommandResult = @@ -604,10 +604,10 @@ bool FM_GetOpenFilesCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_CreateDirectoryCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_CreateDirCmd_t * CmdPtr = (FM_CreateDirCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Create Directory"; - bool CommandResult = false; + FM_CreateDirCmd_t * CmdPtr = (FM_CreateDirCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Create Directory"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_CreateDirCmd_t), FM_CREATE_DIR_PKT_ERR_EID, CmdText); @@ -650,10 +650,10 @@ bool FM_CreateDirectoryCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_DeleteDirectoryCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_DeleteDirCmd_t * CmdPtr = (FM_DeleteDirCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Delete Directory"; - bool CommandResult = false; + FM_DeleteDirCmd_t * CmdPtr = (FM_DeleteDirCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Delete Directory"; + bool CommandResult; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_DeleteDirCmd_t), FM_DELETE_DIR_PKT_ERR_EID, CmdText); @@ -701,7 +701,7 @@ bool FM_GetDirListFileCmd(const CFE_SB_Buffer_t *BufPtr) char DirWithSep[OS_MAX_PATH_LEN] = "\0"; char Filename[OS_MAX_PATH_LEN] = "\0"; FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + bool CommandResult; /* Verify command packet length */ CommandResult = @@ -779,7 +779,7 @@ bool FM_GetDirListPktCmd(const CFE_SB_Buffer_t *BufPtr) const char * CmdText = "Directory List to Packet"; char DirWithSep[OS_MAX_PATH_LEN] = "\0"; FM_ChildQueueEntry_t *CmdArgs = NULL; - bool CommandResult = false; + bool CommandResult; /* Verify command packet length */ CommandResult = @@ -833,9 +833,9 @@ bool FM_GetDirListPktCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_MonitorFilesystemSpaceCmd(const CFE_SB_Buffer_t *BufPtr) { - const char *CmdText = "Get Free Space"; - bool CommandResult = false; - uint32 i = 0; + const char *CmdText = "Get Free Space"; + bool CommandResult; + uint32 i = 0; int32 OpResult; const FM_MonitorTableEntry_t *MonitorPtr; @@ -927,9 +927,9 @@ bool FM_MonitorFilesystemSpaceCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_SetTableStateCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_SetTableStateCmd_t *CmdPtr = (FM_SetTableStateCmd_t *)BufPtr; - const char * CmdText = "Set Table State"; - bool CommandResult = false; + FM_SetTableStateCmd_t *CmdPtr = (FM_SetTableStateCmd_t *)BufPtr; + const char * CmdText = "Set Table State"; + bool CommandResult; /* Verify command packet length */ CommandResult = @@ -997,11 +997,11 @@ bool FM_SetTableStateCmd(const CFE_SB_Buffer_t *BufPtr) bool FM_SetPermissionsCmd(const CFE_SB_Buffer_t *BufPtr) { - FM_SetPermCmd_t * CmdPtr = (FM_SetPermCmd_t *)BufPtr; - FM_ChildQueueEntry_t *CmdArgs = NULL; - const char * CmdText = "Set Permissions"; - bool CommandResult = false; - bool FilenameState = FM_NAME_IS_INVALID; + FM_SetPermCmd_t * CmdPtr = (FM_SetPermCmd_t *)BufPtr; + FM_ChildQueueEntry_t *CmdArgs = NULL; + const char * CmdText = "Set Permissions"; + bool CommandResult; + bool FilenameState; /* Verify command packet length */ CommandResult = FM_IsValidCmdPktLength(&BufPtr->Msg, sizeof(FM_SetPermCmd_t), FM_SET_PERM_ERR_EID, CmdText);