commit - 0fca100c2fe2bfd8e88b22246068addedecd343d
commit + b4b1b9c0333d1aedca89dd35c4e60ac8684cddac
blob - 85d1234ffdb9c7fc4b46eafa3080973bcc7b3327
blob + 5b862ce19c91768a2712777e8538fbe4b78cd1b1
--- lib/privsep.c
+++ lib/privsep.c
return got_error_from_errno("imsg_add TREE_ENTRY");
if (imsg_add(wbuf, &pte->namelen, sizeof(pte->namelen)) == -1)
return got_error_from_errno("imsg_add TREE_ENTRY");
-
+
/* Remaining bytes are the entry's name. */
if (imsg_add(wbuf, pte->name, pte->namelen) == -1)
return got_error_from_errno("imsg_add TREE_ENTRY");
datalen = imsg.hdr.len - IMSG_HEADER_SIZE;
switch (imsg.hdr.type) {
- case GOT_IMSG_ENUMERATED_COMMIT:
+ case GOT_IMSG_ENUMERATED_COMMIT:
if (have_commit && nentries != -1) {
err = got_error(GOT_ERR_PRIVSEP_MSG);
break;
if (imsg_add(wbuf, id, sizeof(*id)) == -1)
return got_error_from_errno("imsg_add OBJ_ID_LIST");
}
-
+
wbuf->fd = -1;
imsg_close(ibuf, wbuf);
struct got_object_id *idlist[GOT_IMSG_OBJ_ID_LIST_MAX_NIDS];
int i, j = 0;
- for (i = 0; i < nids; i++) {
+ for (i = 0; i < nids; i++) {
j = i % nitems(idlist);
idlist[j] = ids[i];
if (j >= nitems(idlist) - 1) {
if (imsg_add(wbuf, delta, sizeof(*delta)) == -1)
return got_error_from_errno("imsg_add REUSED_DELTAS");
}
-
+
wbuf->fd = -1;
imsg_close(ibuf, wbuf);