Download raw body.
formatting patch for privsep.c
While browsing code for painting commits I came across formatting issues for the function (line exceeds 80 chars), while here also checked whole privsep.c diff /home/ec2-user/work/got commit - 0c6ad1bc25c4e1d95a1173141a757137815ddaa8 path + /home/ec2-user/work/got blob - 22b5fe916ef3380f1ead6796d6ddd366191190a2 file + lib/privsep.c --- lib/privsep.c +++ lib/privsep.c @@ -604,7 +604,8 @@ got_privsep_send_fetch_req(struct imsgbuf *ibuf, int f len = sizeof(struct got_imsg_fetch_have_ref) + name_len; wbuf = imsg_create(ibuf, GOT_IMSG_FETCH_HAVE_REF, 0, 0, len); if (wbuf == NULL) - return got_error_from_errno("imsg_create FETCH_HAVE_REF"); + return + got_error_from_errno("imsg_create FETCH_HAVE_REF"); /* Keep in sync with struct got_imsg_fetch_have_ref! */ if (imsg_add(wbuf, id->sha1, sizeof(id->sha1)) == -1) @@ -2244,7 +2245,8 @@ got_privsep_recv_gitconfig_remotes(struct got_remote_r iremote.fetch_url_len == 0 || iremote.send_url_len == 0 || (sizeof(iremote) + iremote.name_len + - iremote.fetch_url_len + iremote.send_url_len) > datalen) { + iremote.fetch_url_len + + iremote.send_url_len) > datalen) { err = got_error(GOT_ERR_PRIVSEP_LEN); break; } @@ -2254,8 +2256,9 @@ got_privsep_recv_gitconfig_remotes(struct got_remote_r err = got_error_from_errno("strndup"); break; } - remote->fetch_url = strndup(imsg.data + sizeof(iremote) + - iremote.name_len, iremote.fetch_url_len); + remote->fetch_url = strndup(imsg.data + + sizeof(iremote) + iremote.name_len, + iremote.fetch_url_len); if (remote->fetch_url == NULL) { err = got_error_from_errno("strndup"); free_remote_data(remote); @@ -2828,7 +2831,8 @@ got_privsep_recv_enumerated_objects(int *found_all_obj err = got_error(GOT_ERR_PRIVSEP_LEN); break; } - icommit = (struct got_imsg_enumerated_commit *)imsg.data; + icommit = + (struct got_imsg_enumerated_commit *)imsg.data; memcpy(commit_id.sha1, icommit->id, SHA1_DIGEST_LENGTH); mtime = icommit->mtime; have_commit = 1; @@ -3029,7 +3033,8 @@ got_privsep_send_raw_delta(struct imsgbuf *ibuf, uint6 const struct got_error * got_privsep_recv_raw_delta(uint64_t *base_size, uint64_t *result_size, off_t *delta_size, off_t *delta_compressed_size, off_t *delta_offset, - off_t *delta_out_offset, struct got_object_id **base_id, struct imsgbuf *ibuf) + off_t *delta_out_offset, struct got_object_id **base_id, + struct imsgbuf *ibuf) { const struct got_error *err = NULL; struct imsg imsg; @@ -3463,8 +3468,8 @@ got_privsep_recv_painted_commits(struct got_object_id_ for (i = 0; i < icommits.ncommits; i++) { memcpy(&icommit, - (uint8_t *)imsg.data + sizeof(icommits) + i * sizeof(icommit), - sizeof(icommit)); + (uint8_t *)imsg.data + sizeof(icommits) + + i * sizeof(icommit), sizeof(icommit)); if (icommits.present_in_pack) { struct got_object_id id;
formatting patch for privsep.c