]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix braces style
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Apr 2018 10:53:11 +0000 (11:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Apr 2018 10:53:11 +0000 (11:53 +0100)
src/libutil/str_util.c

index 186ce5d3823b71e244db6f976cf14a39b49ac58f..6f241b88cff50464fcfd7d71909ffe67f1e4c44a 100644 (file)
@@ -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;