Pass -Wstrict-prototypes -Wold-style-definition, whitespace
Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/filesetup.c b/filesetup.c
index 5ce0f68..db80a8b 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -1109,7 +1109,8 @@
}
}
-static void set_already_allocated(const char *fname) {
+static void set_already_allocated(const char *fname)
+{
struct file_name *fn;
fn = malloc(sizeof(struct file_name));
@@ -1135,7 +1136,8 @@
return 0;
}
-static void free_already_allocated() {
+static void free_already_allocated(void)
+{
struct flist_head *entry, *tmp;
struct file_name *fn;
@@ -1488,6 +1490,7 @@
}
/* free memory used in initialization phase only */
-void filesetup_mem_free() {
+void filesetup_mem_free(void)
+{
free_already_allocated();
}