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 #77, Standardize to SAMPLE_APP_ namespace prefix #100

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Oct 27, 2020

Describe the contribution

Replace inconsistent SAMPLE_ and SAMPLE_App name prefixes, now all identifers should start with SAMPLE_APP_.

Fixes #77

Testing performed
Build and sanity test CFE
Run all unit tests

Expected behavior changes
No impact to behavior, but this also changes the name of the main function from SAMPLE_AppMain to SAMPLE_APP_Main which affects the CFE startup script.

System(s) tested on
Ubuntu 20.04

Additional context
Noticed a bug in the process of this name change - the PipeName field was hardcoded at 16 bytes, and this change (adding 4 chars) made the name too long, which overran the buffer. Furthermore it was set with strcpy(), not strncpy() - so it clobbered the next field.

This has also been fixed in this PR - changed to use CFE_MISSION_MAX_API_LEN and strncpy().

This also requires a corresponding update in SAMPLE_LIB as well as CFE startup script to fix the entry point names.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@astrogeco astrogeco added CCB-20201028 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Oct 28, 2020
@astrogeco
Copy link
Contributor

CCB 2020-10-28 APPROVED

@astrogeco astrogeco changed the base branch from main to integration-candidate October 30, 2020 15:47
Replace inconsistent SAMPLE_ and SAMPLE_App name prefixes,
now all identifers should start with SAMPLE_APP_.
@astrogeco astrogeco merged commit e244768 into nasa:integration-candidate Nov 2, 2020
astrogeco added a commit to nasa/cFS that referenced this pull request Nov 2, 2020
@jphickey jphickey deleted the fix-77-name-consistency branch March 29, 2021 19:20
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.

Rename files, functions, and variables to match APPNAME_* pattern
4 participants