Commit fd2512569717d197f9d892f934f3d490bb1ce0c0

Stefan Sperling 2020-03-24T14:07:58

rename an argument of got_privsep_send_index_pack_req() for clarity

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/privsep.c b/lib/privsep.c
index 8fcc4ca..7a87cf1 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -725,14 +725,14 @@ done:
 }
 
 const struct got_error *
-got_privsep_send_index_pack_req(struct imsgbuf *ibuf, uint8_t *pack_hash,
+got_privsep_send_index_pack_req(struct imsgbuf *ibuf, uint8_t *pack_sha1,
     int fd)
 {
 	const struct got_error *err = NULL;
 
 	/* Keep in sync with struct got_imsg_index_pack_request */
 	if (imsg_compose(ibuf, GOT_IMSG_IDXPACK_REQUEST, 0, 0, fd,
-	    pack_hash, SHA1_DIGEST_LENGTH) == -1) {
+	    pack_sha1, SHA1_DIGEST_LENGTH) == -1) {
 		err = got_error_from_errno("imsg_compose INDEX_REQUEST");
 		close(fd);
 		return err;