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

Replace exit(1) and exit(-1) with preferred macro EXIT_FAILURE #382

Closed
2 tasks done
thnkslprpt opened this issue Mar 13, 2023 · 0 comments · Fixed by #383
Closed
2 tasks done

Replace exit(1) and exit(-1) with preferred macro EXIT_FAILURE #382

thnkslprpt opened this issue Mar 13, 2023 · 0 comments · Fixed by #383

Comments

@thnkslprpt
Copy link
Contributor

Checklist

Describe the bug
PSP contains a few uses of exit(1) and 'exit(-1)'.
Copy of nasa/tblCRCTool#77

Expected behavior
Recommend replacing with the more expressive and more portable EXIT_FAILURE or 'EXIT_SUCCESS' macros.

Code snips

exit(-1); /* Need to improve this */

Reporter Info
Avi Weiss @thnkslprpt

dmknutsen added a commit that referenced this issue Dec 15, 2023
…xit-failure

Fix #382, Replace exit(1) and exit(-1) with EXIT_FAILURE macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant