summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2020-12-22 14:57:45 +0800
committerGitHub <noreply@github.com>2020-12-21 22:57:45 -0800
commit4bc14da2b3330c7ce8b9366ea3880eba65ba2ff9 (patch)
tree23a9e69ba3f179d6a559dc352b787d39a3a745f9 /src/config.c
parent4c13945c370b98b69886c6bcd1e71d4934344cae (diff)
downloadredis-4bc14da2b3330c7ce8b9366ea3880eba65ba2ff9.tar.gz
Fix some redundancy use of semicolon in do-while macros (#8221)
* Fix some redundancy use of semicolon in do-while macros
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 4617e8678..a92b41624 100644
--- a/src/config.c
+++ b/src/config.c
@@ -915,7 +915,7 @@ badfmt: /* Bad format errors */
addReplyBulkCString(c,_var ? _var : ""); \
matches++; \
} \
-} while(0);
+} while(0)
#define config_get_bool_field(_name,_var) do { \
if (stringmatch(pattern,_name,1)) { \
@@ -923,7 +923,7 @@ badfmt: /* Bad format errors */
addReplyBulkCString(c,_var ? "yes" : "no"); \
matches++; \
} \
-} while(0);
+} while(0)
#define config_get_numerical_field(_name,_var) do { \
if (stringmatch(pattern,_name,1)) { \
@@ -932,8 +932,7 @@ badfmt: /* Bad format errors */
addReplyBulkCString(c,buf); \
matches++; \
} \
-} while(0);
-
+} while(0)
void configGetCommand(client *c) {
robj *o = c->argv[2];