Commit 3e6054c427d642654d5abed63965eead037a7b2f

Omar Polo 2022-06-14T13:16:14

drop unused variable

diff --git a/lib/privsep.c b/lib/privsep.c
index 438b7c7..21a5f45 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -2109,11 +2109,10 @@ got_privsep_recv_gitconfig_str(char **str, struct imsgbuf *ibuf)
 	const struct got_error *err = NULL;
 	struct imsg imsg;
 	size_t datalen;
-	const size_t min_datalen = 0;
 
 	*str = NULL;
 
-	err = got_privsep_recv_imsg(&imsg, ibuf, min_datalen);
+	err = got_privsep_recv_imsg(&imsg, ibuf, 0);
 	if (err)
 		return err;
 	datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
@@ -2355,11 +2354,10 @@ got_privsep_recv_gotconfig_str(char **str, struct imsgbuf *ibuf)
 	const struct got_error *err = NULL;
 	struct imsg imsg;
 	size_t datalen;
-	const size_t min_datalen = 0;
 
 	*str = NULL;
 
-	err = got_privsep_recv_imsg(&imsg, ibuf, min_datalen);
+	err = got_privsep_recv_imsg(&imsg, ibuf, 0);
 	if (err)
 		return err;
 	datalen = imsg.hdr.len - IMSG_HEADER_SIZE;