Commit 9d2a8e53001829e269993f447f64cde7978a9415

Stefan Sperling 2019-01-28T23:55:41

move forward declaration of diff_fileindex_tree() further down

diff --git a/lib/fileindex.c b/lib/fileindex.c
index 0116d68..111eba8 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -547,11 +547,6 @@ got_fileindex_read(struct got_fileindex *fileindex, FILE *infile)
 	return NULL;
 }
 
-static const struct got_error *
-diff_fileindex_tree(struct got_fileindex *, struct got_fileindex_entry **,
-    struct got_tree_object *, const char *, struct got_repository *,
-    struct got_fileindex_diff_cb *, void *);
-
 struct got_fileindex_entry *
 walk_fileindex(struct got_fileindex *fileindex, struct got_fileindex_entry *ie)
 {
@@ -567,6 +562,11 @@ walk_fileindex(struct got_fileindex *fileindex, struct got_fileindex_entry *ie)
 }
 
 static const struct got_error *
+diff_fileindex_tree(struct got_fileindex *, struct got_fileindex_entry **,
+    struct got_tree_object *, const char *, struct got_repository *,
+    struct got_fileindex_diff_cb *, void *);
+
+static const struct got_error *
 walk_tree(struct got_tree_entry **next, struct got_fileindex *fileindex,
     struct got_fileindex_entry **ie, struct got_tree_entry *te,
     const char *path, struct got_repository *repo,