diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-28 11:53:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-28 11:53:11 +0100 |
commit | d0a776ba204dfdb33076b53816cbd7e7f090e637 (patch) | |
tree | db42a9c4b5a37d4d1377dfc987f23f9dccaefe8f /src/libutil | |
parent | 72188b4603199e31025360e75cb26a5d9cb90ad7 (diff) | |
download | rspamd-d0a776ba204dfdb33076b53816cbd7e7f090e637.tar.gz rspamd-d0a776ba204dfdb33076b53816cbd7e7f090e637.zip |
[Minor] Fix braces style
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/str_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 186ce5d38..6f241b88c 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1649,9 +1649,9 @@ decode: c = *p++; ret *= 16; - if (c >= '0' && c <= '9') ret += c - '0'; - else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10; - else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10; + if (c >= '0' && c <= '9') { ret += c - '0'; } + else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; } + else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; } if (end - o > 0) { *o++ = (gchar)ret; @@ -1753,9 +1753,9 @@ decode: c = *p++; ret *= 16; - if (c >= '0' && c <= '9') ret += c - '0'; - else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10; - else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10; + if (c >= '0' && c <= '9') { ret += c - '0'; } + else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; } + else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; } if (end - o > 0) { *o++ = (gchar)ret; |