Commit Diff


commit - d37e5e854f34bf332a06ab4520ccde1d4cd453f6
commit + 2fa42ef872883a93e6207c02156de329a31dde7f
blob - 57e82b2411a07a632531e6c7dca37fa004cf9fdc
blob + 4dc2ac6775d98c75c69eed9a3c97169748135cb1
--- lib/pack_create_privsep.c
+++ lib/pack_create_privsep.c
@@ -395,7 +395,7 @@ paint_packed_commits(struct got_object_qid **qid0,
 
 static const struct got_error *
 pin_pack_for_commit_painting(struct got_pack **pack,
-    struct got_packidx **packidx, struct got_object_id_queue *ids, int nqueued,
+    struct got_packidx **packidx, struct got_object_id_queue *ids,
     struct got_repository *repo)
 {
 	const struct got_error *err;
@@ -435,7 +435,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec
 	int nqueued = nids, nskip = 0;
 	int idx;
 
-	err = pin_pack_for_commit_painting(&pack, &packidx, ids, nqueued, repo);
+	err = pin_pack_for_commit_painting(&pack, &packidx, ids, repo);
 	if (err)
 		return err;
 
@@ -452,7 +452,7 @@ got_pack_paint_commits(int *ncolored, struct got_objec
 		pack = got_repo_get_pinned_pack(repo);
 		if (pack == NULL) {
 			err = pin_pack_for_commit_painting(&pack, &packidx,
-			    ids, nqueued, repo);
+			    ids, repo);
 			if (err)
 				break;
 		}