remove unused variable in got_privsep_recv_obj() (patch by Steven McDonald)
diff --git a/lib/privsep.c b/lib/privsep.c
index f9961bf..62a79cf 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -430,7 +430,6 @@ got_privsep_recv_obj(struct got_object **obj, struct imsgbuf *ibuf)
{
const struct got_error *err = NULL;
struct imsg imsg;
- size_t datalen;
const size_t min_datalen =
MIN(sizeof(struct got_imsg_error), sizeof(struct got_imsg_object));
@@ -440,8 +439,6 @@ got_privsep_recv_obj(struct got_object **obj, struct imsgbuf *ibuf)
if (err)
return err;
- datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
-
switch (imsg.hdr.type) {
case GOT_IMSG_OBJECT:
err = got_privsep_get_imsg_obj(obj, &imsg, ibuf);