From: Ruben Kerkhof Date: Tue, 3 Apr 2018 19:48:27 +0000 (+0200) Subject: filecount plugin: mark function as static X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=35678eaa6ad0e847930711352da07e9912adf885;p=collectd.git filecount plugin: mark function as static Fixes a build warning: CC src/filecount.lo src/filecount.c:66:6: warning: no previous prototype for function 'fc_free_dir' [-Wmissing-prototypes] void fc_free_dir(fc_directory_conf_t *dir) { ^ 1 warning generated. --- diff --git a/src/filecount.c b/src/filecount.c index 7842aa61..67308f41 100644 --- a/src/filecount.c +++ b/src/filecount.c @@ -63,7 +63,7 @@ typedef struct fc_directory_conf_s fc_directory_conf_t; static fc_directory_conf_t **directories = NULL; static size_t directories_num = 0; -void fc_free_dir(fc_directory_conf_t *dir) { +static void fc_free_dir(fc_directory_conf_t *dir) { sfree(dir->path); sfree(dir->plugin_name); sfree(dir->instance);