From 8d4db568b13c8ad8aad1899b10eac376b2e1b69e Mon Sep 17 00:00:00 2001 From: Avi Date: Thu, 27 Oct 2022 12:48:30 +1000 Subject: [PATCH] Fix #1518, Rename misnomer function name CFE_TBLNotifyTblUsersOfUpdate() --- modules/tbl/fsw/src/cfe_tbl_api.c | 4 ++-- modules/tbl/fsw/src/cfe_tbl_internal.c | 6 +++--- modules/tbl/fsw/src/cfe_tbl_internal.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/tbl/fsw/src/cfe_tbl_api.c b/modules/tbl/fsw/src/cfe_tbl_api.c index 729bef4d2..be662b444 100644 --- a/modules/tbl/fsw/src/cfe_tbl_api.c +++ b/modules/tbl/fsw/src/cfe_tbl_api.c @@ -410,7 +410,7 @@ CFE_Status_t CFE_TBL_Register(CFE_TBL_Handle_t *TblHandlePtr, const char *Name, WorkingBufferPtr->BufferPtr, RegRecPtr->Size, 0, CFE_MISSION_ES_DEFAULT_CRC); /* Make sure everyone who sees the table knows that it has been updated */ - CFE_TBL_NotifyTblUsersOfUpdate(RegRecPtr); + CFE_TBL_MarkTblAsUpdated(RegRecPtr); /* Make sure the caller realizes the contents have been initialized */ Status = CFE_TBL_INFO_RECOVERED_TBL; @@ -863,7 +863,7 @@ CFE_Status_t CFE_TBL_Load(CFE_TBL_Handle_t TblHandle, CFE_TBL_SrcEnum_t SrcType, strncpy(RegRecPtr->LastFileLoaded, WorkingBufferPtr->DataSource, sizeof(RegRecPtr->LastFileLoaded) - 1); RegRecPtr->LastFileLoaded[sizeof(RegRecPtr->LastFileLoaded) - 1] = '\0'; - CFE_TBL_NotifyTblUsersOfUpdate(RegRecPtr); + CFE_TBL_MarkTblAsUpdated(RegRecPtr); /* If the table is a critical table, update the appropriate CDS with the new data */ if (RegRecPtr->CriticalTable == true) diff --git a/modules/tbl/fsw/src/cfe_tbl_internal.c b/modules/tbl/fsw/src/cfe_tbl_internal.c index 3f0d03491..4947ff0b6 100644 --- a/modules/tbl/fsw/src/cfe_tbl_internal.c +++ b/modules/tbl/fsw/src/cfe_tbl_internal.c @@ -940,7 +940,7 @@ int32 CFE_TBL_UpdateInternal(CFE_TBL_Handle_t TblHandle, CFE_TBL_RegistryRec_t * sizeof(RegRecPtr->LastFileLoaded) - 1); RegRecPtr->LastFileLoaded[sizeof(RegRecPtr->LastFileLoaded) - 1] = '\0'; - CFE_TBL_NotifyTblUsersOfUpdate(RegRecPtr); + CFE_TBL_MarkTblAsUpdated(RegRecPtr); /* If the table is a critical table, update the appropriate CDS with the new data */ if (RegRecPtr->CriticalTable == true) @@ -995,7 +995,7 @@ int32 CFE_TBL_UpdateInternal(CFE_TBL_Handle_t TblHandle, CFE_TBL_RegistryRec_t * /* Free the working buffer */ CFE_TBL_Global.LoadBuffs[RegRecPtr->LoadInProgress].Taken = false; - CFE_TBL_NotifyTblUsersOfUpdate(RegRecPtr); + CFE_TBL_MarkTblAsUpdated(RegRecPtr); /* If the table is a critical table, update the appropriate CDS with the new data */ if (RegRecPtr->CriticalTable == true) @@ -1015,7 +1015,7 @@ int32 CFE_TBL_UpdateInternal(CFE_TBL_Handle_t TblHandle, CFE_TBL_RegistryRec_t * * See description in header file for argument/return detail * *-----------------------------------------------------------------*/ -void CFE_TBL_NotifyTblUsersOfUpdate(CFE_TBL_RegistryRec_t *RegRecPtr) +void CFE_TBL_MarkTblAsUpdated(CFE_TBL_RegistryRec_t *RegRecPtr) { CFE_TBL_Handle_t AccessIterator; diff --git a/modules/tbl/fsw/src/cfe_tbl_internal.h b/modules/tbl/fsw/src/cfe_tbl_internal.h index 6af1def29..992419900 100644 --- a/modules/tbl/fsw/src/cfe_tbl_internal.h +++ b/modules/tbl/fsw/src/cfe_tbl_internal.h @@ -404,7 +404,7 @@ int32 CFE_TBL_UpdateInternal(CFE_TBL_Handle_t TblHandle, CFE_TBL_RegistryRec_t * ** ** \param[in] RegRecPtr Pointer to Table Registry Entry for table to be updated */ -void CFE_TBL_NotifyTblUsersOfUpdate(CFE_TBL_RegistryRec_t *RegRecPtr); +void CFE_TBL_MarkTblAsUpdated(CFE_TBL_RegistryRec_t *RegRecPtr); /*---------------------------------------------------------------------------------------*/ /**