summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d39c84c)
raw | patch | inline | side by side (parent: d39c84c)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 17:02:30 +0000 (18:02 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 17:02:30 +0000 (18:02 +0100) |
src/utils_cmd_flush.c:140:11: warning: declaration shadows a local variable [-Wshadow]
int status;
^
src/utils_cmd_flush.c:114:7: note: previous declaration is here
int status;
^
int status;
^
src/utils_cmd_flush.c:114:7: note: previous declaration is here
int status;
^
src/utils_cmd_flush.c | patch | blob | history |
diff --git a/src/utils_cmd_flush.c b/src/utils_cmd_flush.c
index f7f024eda2dc8ff63a9864c08a5d2ba6abe96cec..25a55122bea82f545a376dd8ceb336fd62a80480 100644 (file)
--- a/src/utils_cmd_flush.c
+++ b/src/utils_cmd_flush.c
for (size_t j = 0; (j == 0) || (j < cmd.cmd.flush.identifiers_num); j++) {
char *identifier = NULL;
char buf[1024];
- int status;
if (cmd.cmd.flush.identifiers_num != 0) {
identifier_t *id = cmd.cmd.flush.identifiers + j;
identifier = buf;
}
- status = plugin_flush(plugin, DOUBLE_TO_CDTIME_T(cmd.cmd.flush.timeout),
- identifier);
- if (status == 0)
+ if (plugin_flush(plugin, DOUBLE_TO_CDTIME_T(cmd.cmd.flush.timeout),
+ identifier) == 0)
success++;
else
error++;