commit - cc57c2cb8c8d6bc0a47692b47a6fefc5adaf2510
commit + e05fd55cbfee4e4023db6595ae04fa79275c8637
blob - 9cd5e389d8bbe7d91148d4b701ce7e577736258e
blob + 857c09bbb3a5d9425176ed93727a912b2242aac6
--- 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);