Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter for sizeof check in cfe_tbl_task #2220

Closed
ndijkhof opened this issue Dec 1, 2022 · 0 comments · Fixed by #2222 or #2226
Closed

Add parameter for sizeof check in cfe_tbl_task #2220

ndijkhof opened this issue Dec 1, 2022 · 0 comments · Fixed by #2222 or #2226
Milestone

Comments

@ndijkhof
Copy link

ndijkhof commented Dec 1, 2022

Macro CFE_TBL_MESSAGE_ENTRY in cfe_tbl_task.c uses a static structure typedef for the sizeof check that is causing issues with a new feature.

Add new macro input parameter to have the structure type passed for sizeof check similar to macro CFE_TBL_COMMAND_ENTRY. Also change line 68 of cfe_tbl_task.c to have the macro input parameter to be CFE_TBL_NoArgsCmd_t as seen below:

CFE_TBL_MESSAGE_ENTRY(CFE_TBL_SEND_HK_MID, CFE_TBL_NoArgsCmd_t, CFE_TBL_HousekeepingCmd)

Nicholas Dijkhoffz JSC/METECs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants