Skip to content

Commit

Permalink
Merge pull request #1664 from jphickey/fix-1662-dat-extension
Browse files Browse the repository at this point in the history
Fix #1662, remove default .dat extension
  • Loading branch information
astrogeco authored Jul 14, 2021
2 parents f7ea468 + 488dbc2 commit cf384a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions modules/fs/fsw/src/cfe_fs_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
* Fixed default file system extensions (not platform dependent)
*/
const char CFE_FS_DEFAULT_SCRIPT_EXTENSION[] = ".scr";
const char CFE_FS_DEFAULT_DUMP_FILE_EXTENSION[] = ".dat";
const char CFE_FS_DEFAULT_TEMP_FILE_EXTENSION[] = ".tmp";
const char CFE_FS_DEFAULT_LOG_FILE_EXTENSION[] = ".log";

Expand Down Expand Up @@ -105,9 +104,6 @@ const char *CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_t FileCategory)
case CFE_FS_FileCategory_TEMP:
Result = CFE_FS_DEFAULT_TEMP_FILE_EXTENSION;
break;
case CFE_FS_FileCategory_BINARY_DATA_DUMP:
Result = CFE_FS_DEFAULT_DUMP_FILE_EXTENSION;
break;
case CFE_FS_FileCategory_TEXT_LOG:
Result = CFE_FS_DEFAULT_LOG_FILE_EXTENSION;
break;
Expand Down
2 changes: 1 addition & 1 deletion modules/fs/ut-coverage/fs_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void Test_CFE_FS_DefaultFileStrings(void)
UtAssert_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_UNKNOWN));
UtAssert_ADDRESS_EQ(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_DYNAMIC_MODULE),
GLOBAL_CONFIGDATA.Default_ModuleExtension);
UtAssert_NOT_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_BINARY_DATA_DUMP));
UtAssert_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_BINARY_DATA_DUMP));
UtAssert_NOT_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_TEXT_LOG));
UtAssert_NOT_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_SCRIPT));
UtAssert_NOT_NULL(CFE_FS_GetDefaultExtension(CFE_FS_FileCategory_TEMP));
Expand Down

0 comments on commit cf384a5

Please sign in to comment.