summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e53a4c2)
raw | patch | inline | side by side (parent: e53a4c2)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 16:51:09 +0000 (17:51 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 16:51:09 +0000 (17:51 +0100) |
CC src/utils_cmd_flush.lo
src/utils_cmd_flush.c:139:12: warning: declaration shadows a local variable [-Wshadow]
char buffer[1024];
^
src/utils_cmd_flush.c:108:47: note: previous declaration is here
cmd_status_t cmd_handle_flush(FILE *fh, char *buffer) {
^
src/utils_cmd_flush.c:139:12: warning: declaration shadows a local variable [-Wshadow]
char buffer[1024];
^
src/utils_cmd_flush.c:108:47: note: previous declaration is here
cmd_status_t cmd_handle_flush(FILE *fh, char *buffer) {
^
src/utils_cmd_flush.c | patch | blob | history |
diff --git a/src/utils_cmd_flush.c b/src/utils_cmd_flush.c
index 9e8950bbaf192e996ab1c15a4e58acc00a6b08a5..f7f024eda2dc8ff63a9864c08a5d2ba6abe96cec 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 buffer[1024];
+ char buf[1024];
int status;
if (cmd.cmd.flush.identifiers_num != 0) {
identifier_t *id = cmd.cmd.flush.identifiers + j;
- if (format_name(buffer, sizeof(buffer), id->host, id->plugin,
+ if (format_name(buf, sizeof(buf), id->host, id->plugin,
id->plugin_instance, id->type,
id->type_instance) != 0) {
error++;
continue;
}
- identifier = buffer;
+ identifier = buf;
}
status = plugin_flush(plugin, DOUBLE_TO_CDTIME_T(cmd.cmd.flush.timeout),