Commit Diff


commit - 43b7c718434b375f74c95047d7721b5e33b73002
commit + f06111e55cce9dd33ce3867b1a2fab4b5889a9b7
blob - 7a41f0e0f53d5f0de7c69fb10e23c92495febdf9
blob + 477633fbac262784ef22d42d77c5ba975829a4fc
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -548,8 +548,7 @@ got_fileindex_read(struct got_fileindex *fileindex, FI
 }
 
 static int
-in_same_subdir(struct got_fileindex_entry *ie, const char *parent_path,
-    struct got_tree_entry *te)
+in_same_subdir(struct got_fileindex_entry *ie, const char *parent_path)
 {
 	size_t parent_len = strlen(parent_path);
 	char *ie_name;
@@ -575,7 +574,7 @@ cmp_entries(struct got_fileindex_entry *ie, const char
 	size_t parent_len = strlen(parent_path);
 	int cmp;
 
-	if (!in_same_subdir(ie, parent_path, te)) {
+	if (!in_same_subdir(ie, parent_path)) {
 		cmp = strncmp(ie->path, parent_path, parent_len);
 		if (cmp == 0) {
 			char *ie_name = ie->path + parent_len;