From: Florian Forster Date: Tue, 6 Dec 2016 09:55:42 +0000 (+0100) Subject: src/utils_cmd_*.[ch]: Remove unused and redundant includes. X-Git-Tag: collectd-5.7.0~3^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ebb15e3e8eeb7673b8d2b36be3f3b79a2918c743;p=collectd.git src/utils_cmd_*.[ch]: Remove unused and redundant includes. --- diff --git a/src/utils_cmd_flush.c b/src/utils_cmd_flush.c index 48243e6d..a8de21a6 100644 --- a/src/utils_cmd_flush.c +++ b/src/utils_cmd_flush.c @@ -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, diff --git a/src/utils_cmd_flush.h b/src/utils_cmd_flush.h index 57b90853..d9b4e1b2 100644 --- a/src/utils_cmd_flush.h +++ b/src/utils_cmd_flush.h @@ -27,10 +27,10 @@ #ifndef UTILS_CMD_FLUSH_H #define UTILS_CMD_FLUSH_H 1 -#include - #include "utils_cmds.h" +#include + 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); diff --git a/src/utils_cmd_putval.c b/src/utils_cmd_putval.c index e0455335..817f954b 100644 --- a/src/utils_cmd_putval.c +++ b/src/utils_cmd_putval.c @@ -29,12 +29,7 @@ #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 diff --git a/src/utils_cmd_putval.h b/src/utils_cmd_putval.h index 75cd190c..bc6e193e 100644 --- a/src/utils_cmd_putval.h +++ b/src/utils_cmd_putval.h @@ -27,11 +27,11 @@ #ifndef UTILS_CMD_PUTVAL_H #define UTILS_CMD_PUTVAL_H 1 -#include - #include "plugin.h" #include "utils_cmds.h" +#include + cmd_status_t cmd_parse_putval(size_t argc, char **argv, cmd_putval_t *ret_putval, const cmd_options_t *opts,