diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-30 15:15:50 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-30 19:06:44 +0100 |
commit | 1977d56caaff40ea9bbf6754b69bec9539a5a969 (patch) | |
tree | db9c6d6c59dc0f91900dafe85dea1ab90f0ca8d9 /toxdns/toxdns.c | |
parent | 949ef785a4e7aa7868c9605b6bbed15c3f4beab9 (diff) |
Remove return after no-return situation (and other cleanups).
Cleanups:
- Fix header guards to not use reserved names.
- Avoid name shadowing.
- Removed an unused variable found by avoiding name shadowing.
Diffstat (limited to 'toxdns/toxdns.c')
-rw-r--r-- | toxdns/toxdns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxdns/toxdns.c b/toxdns/toxdns.c index 6622d6a5..01380772 100644 --- a/toxdns/toxdns.c +++ b/toxdns/toxdns.c | |||
@@ -37,14 +37,14 @@ static const char base32[32] = { | |||
37 | 37 | ||
38 | #define _encode(a, b, c) \ | 38 | #define _encode(a, b, c) \ |
39 | { \ | 39 | { \ |
40 | uint8_t i = 0; \ | 40 | uint8_t _i = 0; \ |
41 | while(i != c) { \ | 41 | while (_i != c) { \ |
42 | *a++ = base32[((b[0] >> bits) | (b[1] << (8 - bits))) & 0x1F]; \ | 42 | *a++ = base32[((b[0] >> bits) | (b[1] << (8 - bits))) & 0x1F]; \ |
43 | bits += 5; \ | 43 | bits += 5; \ |
44 | if(bits >= 8) { \ | 44 | if(bits >= 8) { \ |
45 | bits -= 8; \ | 45 | bits -= 8; \ |
46 | b++; \ | 46 | b++; \ |
47 | i++; \ | 47 | _i++; \ |
48 | } \ | 48 | } \ |
49 | } \ | 49 | } \ |
50 | } | 50 | } |