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

Fix #104, Convert int32 return codes and variables to CFE_Status_t #105

Conversation

thnkslprpt
Copy link
Contributor

Checklist

Describe the contribution

Testing performed
GitHub CI actions all passing successfully.

Expected behavior changes
No change to behavior.
CFE_Status_t is more expressive and improves consistency with cFE/cFS.

Contributor Info
Avi Weiss @thnkslprpt

@@ -44,13 +44,13 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableInit(void)
CFE_Status_t DS_TableInit(void)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@@ -869,12 +869,12 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableCreateCDS(void)
CFE_Status_t DS_TableCreateCDS(void)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@@ -510,10 +510,10 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableVerifyFilter(const void *TableData)
CFE_Status_t DS_TableVerifyFilter(const void *TableData)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@@ -394,10 +394,10 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableVerifyDestFile(const void *TableData)
CFE_Status_t DS_TableVerifyDestFile(const void *TableData)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@@ -173,10 +173,10 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_AppInitialize(void)
CFE_Status_t DS_AppInitialize(void)

Check notice

Code scanning / CodeQL

Function too long

DS_AppInitialize has too many lines (95, while 60 are allowed).
@@ -44,13 +44,13 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableInit(void)
CFE_Status_t DS_TableInit(void)

Check notice

Code scanning / CodeQL

Function too long

DS_TableInit has too many lines (131, while 60 are allowed).
@@ -869,12 +869,12 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_TableCreateCDS(void)
CFE_Status_t DS_TableCreateCDS(void)

Check notice

Code scanning / CodeQL

Function too long

DS_TableCreateCDS has too many lines (64, while 60 are allowed).
@@ -173,10 +173,10 @@
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

int32 DS_AppInitialize(void)
CFE_Status_t DS_AppInitialize(void)

Check notice

Code scanning / CodeQL

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
Copy link
Contributor

@chillfig chillfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not update the return type in the function prototype?

int32 DS_TableInit(void);

int32 DS_TableVerifyFilter(const void *TableData);

int32 DS_TableVerifyDestFile(const void *TableData);

int32 DS_TableCreateCDS(void);

@thnkslprpt thnkslprpt force-pushed the fix-104-convert-int32-return-codes-to-CFE_Status_t branch from 1c93153 to cd3aec2 Compare May 11, 2023 20:06
@thnkslprpt thnkslprpt requested a review from chillfig May 11, 2023 20:06
@thnkslprpt
Copy link
Contributor Author

Why not update the return type in the function prototype?
...

Woops - missed them.
Updated now.

@chillfig
Copy link
Contributor

Why not update the return type in the function prototype?
...

Woops - missed them. Updated now.

Looks good. Thank you!

@dzbaker dzbaker merged commit 704fd2b into nasa:main May 18, 2023
@thnkslprpt thnkslprpt deleted the fix-104-convert-int32-return-codes-to-CFE_Status_t branch May 18, 2023 21:18
@dmknutsen dmknutsen added this to the Equuleus milestone May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DS int32 return codes and variables should be converted to CFE_Status_t
4 participants