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

Remove return after no-return situation. #182

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Sep 30, 2016

Also, fix header guards to not use reserved names.

@@ -37,14 +37,14 @@ static const char base32[32] = {

#define _encode(a, b, c) \
{ \
uint8_t i = 0; \
while(i != c) { \
uint8_t _i = 0; \
Copy link
Member

Choose a reason for hiding this comment

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

What's this change for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Avoid shadowing of i, which is often already used. Avoids confusion about which i is used where.

Cleanups:
- Fix header guards to not use reserved names.
- Avoid name shadowing.
- Removed an unused variable found by avoiding name shadowing.
@iphydf iphydf merged commit 1977d56 into TokTok:master Sep 30, 2016
@iphydf iphydf deleted the cleanup branch October 18, 2016 11:13
@iphydf iphydf modified the milestone: v0.0.2 Nov 5, 2016
This pull request was closed.
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 this pull request may close these issues.

2 participants