filecount plugin: mark function as static
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 19:48:27 +0000 (21:48 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 3 Apr 2018 19:48:27 +0000 (21:48 +0200)
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.

src/filecount.c

index 7842aa6..67308f4 100644 (file)
@@ -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);