Code

src/utils_cmd_*.[ch]: Remove unused and redundant includes.
authorFlorian Forster <octo@collectd.org>
Tue, 6 Dec 2016 09:55:42 +0000 (10:55 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 6 Dec 2016 09:55:42 +0000 (10:55 +0100)
src/utils_cmd_flush.c
src/utils_cmd_flush.h
src/utils_cmd_putval.c
src/utils_cmd_putval.h

index 48243e6d514ec5c0072a81c1ac5fe0db653fd766..a8de21a6319b74f560ea18aa83c1fd2034ea5f13 100644 (file)
@@ -31,7 +31,6 @@
 #include "common.h"
 #include "plugin.h"
 #include "utils_cmd_flush.h"
-#include "utils_parse_option.h"
 
 cmd_status_t cmd_parse_flush(size_t argc, char **argv, cmd_flush_t *ret_flush,
                              const cmd_options_t *opts,
index 57b90853959a55dcc4759b250a309c73ad81d1c4..d9b4e1b2a98ca776037bde7c5205c4e7145ed94d 100644 (file)
 #ifndef UTILS_CMD_FLUSH_H
 #define UTILS_CMD_FLUSH_H 1
 
-#include <stdio.h>
-
 #include "utils_cmds.h"
 
+#include <stdio.h>
+
 cmd_status_t cmd_parse_flush(size_t argc, char **argv, cmd_flush_t *ret_flush,
                              const cmd_options_t *opts,
                              cmd_error_handler_t *err);
index e0455335e0edb1ff8a92195528df52227a619cac..817f954b647312de5991e110859390fc221e7fc5 100644 (file)
 #include "collectd.h"
 
 #include "common.h"
-#include "plugin.h"
-
-#include "utils_cmd_putval.h"
 #include "utils_cmd_putval.h"
-#include "utils_cmds.h"
-#include "utils_parse_option.h"
 
 /*
  * private helper functions
index 75cd190c8ed0a29f578609d80e356707ebd9b5af..bc6e193eeb9e1db340e2eabd99dd70fc26b632c0 100644 (file)
 #ifndef UTILS_CMD_PUTVAL_H
 #define UTILS_CMD_PUTVAL_H 1
 
-#include <stdio.h>
-
 #include "plugin.h"
 #include "utils_cmds.h"
 
+#include <stdio.h>
+
 cmd_status_t cmd_parse_putval(size_t argc, char **argv,
                               cmd_putval_t *ret_putval,
                               const cmd_options_t *opts,