ARMmbed / ARMmbed/mbed-os-example-tls
sample applications should not set exit_code as return statement of functions
Open
bug
IOTOSM-3114
Jira status: OPEN
mirrored
- Dominant language
- C
- Stars
- 31
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
As commented in https://github.com/ARMmbed/mbed-os-example-tls/pull/199#discussion_r224024552
internal functions return code should be set to a variable different than `exit_code`.
It's not a functionality bug, but it shows bad practice
Contributor guide
Research direction
The issue does not name files or tests. Start by reviewing the sample applications and the linked pull-request discussion, then identify internal functions that return through `exit_code`; done means those functions use a separate return-code variable while preserving application exit behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100