commit - b15057701186a99af7523319371ec7e0db9dd195
commit + 202f996b2931bb3d374f22e5162bfe3acebdea35
blob - c2033cbd85a6b278e2b0b27aa0f57ec1f4d0c115
blob + 2104bd014188b69ece1144b2758f54ba9b61326d
--- lib/privsep.c
+++ lib/privsep.c
{
const struct got_error *err = NULL;
struct imsg imsg;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error), sizeof(struct got_imsg_object));
+ const size_t min_datalen = sizeof(struct got_imsg_object);
*obj = NULL;
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_commit_object));
+ const size_t min_datalen = sizeof(struct got_imsg_commit_object);
*commit = NULL;
got_privsep_recv_tree(struct got_tree_object **tree, struct imsgbuf *ibuf)
{
const struct got_error *err = NULL;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error),
- sizeof(struct got_imsg_tree_object));
+ const size_t min_datalen = sizeof(struct got_imsg_tree_object);
struct got_imsg_tree_object *itree;
int nentries = 0;
struct imsg imsg;
struct got_imsg_tag_object *itag;
size_t len, datalen;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error),
- sizeof(struct got_imsg_tag_object));
+ const size_t min_datalen = sizeof(struct got_imsg_tag_object);
*tag = NULL;
const struct got_error *err = NULL;
struct imsg imsg;
size_t datalen;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error), sizeof(int));
+ const size_t min_datalen = sizeof(int);
*val = 0;
size_t datalen;
struct got_imsg_remotes iremotes;
struct got_imsg_remote iremote;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error), sizeof(iremotes));
+ const size_t min_datalen = sizeof(iremotes);
*remotes = NULL;
*nremotes = 0;
while (*nremotes < iremotes.nremotes) {
struct got_remote_repo *remote;
- const size_t min_datalen =
- MIN(sizeof(struct got_imsg_error), sizeof(iremote));
+ const size_t min_datalen = sizeof(iremote);
int i;
err = got_privsep_recv_imsg(&imsg, ibuf, min_datalen);