Commit Diff


commit - 0ef3ddaa20b027c211debfaffe4c5b9e454f23b3
commit + 81a1b9add11a52cde9675b1a2c85cae35e644418
blob - 4a59325762dbfcb7188bdd14018f9086b94717de
blob + 048718ea7c15398aee72f2cf33c45733df866490
--- gotd/repo_write.c
+++ gotd/repo_write.c
@@ -838,8 +838,8 @@ copy_ref_delta(int infd, int outfd, off_t *outsize, BU
 }
 
 static const struct got_error *
-copy_offset_delta(int infd, int outfd, off_t *outsize, BUF *buf, size_t *buf_pos,
-    struct got_hash *ctx)
+copy_offset_delta(int infd, int outfd, off_t *outsize, BUF *buf,
+    size_t *buf_pos, struct got_hash *ctx)
 {
 	const struct got_error *err = NULL;
 	uint64_t o = 0;
@@ -1403,7 +1403,8 @@ verify_packfile(void)
 		if (ref_update->delete_ref)
 			continue;
 
-		RB_FOREACH(pe, got_pathlist_head, repo_write.protected_tag_namespaces) {
+		RB_FOREACH(pe, got_pathlist_head,
+		    repo_write.protected_tag_namespaces) {
 			err = protect_tag_namespace(pe->path, &client->pack,
 			    packidx, ref_update);
 			if (err)
@@ -1435,15 +1436,15 @@ verify_packfile(void)
 			}
 		}
 
-		RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branch_namespaces)
-		{
+		RB_FOREACH(pe, got_pathlist_head,
+		    repo_write.protected_branch_namespaces) {
 			err = protect_branch_namespace(pe->path,
 			    &client->pack, packidx, ref_update);
 			if (err)
 				goto done;
 		}
-		RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
-		{
+		RB_FOREACH(pe, got_pathlist_head,
+		    repo_write.protected_branches) {
 			err = protect_branch(pe->path, &client->pack,
 			    packidx, ref_update);
 			if (err)
@@ -1490,8 +1491,8 @@ protect_refs_from_deletion(void)
 				return err;
 		}
 
-		RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
-		{
+		RB_FOREACH(pe, got_pathlist_head,
+		    repo_write.protected_branches) {
 			if (strcmp(refname, pe->path) == 0) {
 				return got_error_fmt(GOT_ERR_REF_PROTECTED,
 				    "%s", refname);
@@ -1535,8 +1536,8 @@ protect_refs_from_moving(void)
 				return err;
 		}
 
-		RB_FOREACH(pe, got_pathlist_head, repo_write.protected_branches)
-		{
+		RB_FOREACH(pe, got_pathlist_head,
+		    repo_write.protected_branches) {
 			if (strcmp(refname, pe->path) == 0) {
 				return got_error_fmt(GOT_ERR_REF_PROTECTED,
 				    "%s", refname);
@@ -1772,8 +1773,8 @@ print_diffstat(struct got_diffstat_cb_arg *dsa, int fd
 		int pad = dsa->max_path_len - pe->path_len + 1;
 
 		dprintf(fd, " %c  %s%*c | %*d+ %*d-\n", cp->status,
-		     pe->path, pad, ' ', dsa->add_cols + 1, cp->add,
-		     dsa->rm_cols + 1, cp->rm);
+		    pe->path, pad, ' ', dsa->add_cols + 1, cp->add,
+		    dsa->rm_cols + 1, cp->rm);
 	}
 	dprintf(fd,
 	    "\n%d file%s changed, %d insertion%s(+), %d deletion%s(-)\n\n",
@@ -2324,9 +2325,8 @@ repo_write_dispatch_session(int fd, short event, void 
 	}
 
 	if (!shut && check_cancelled(NULL) == NULL) {
-		if (err &&
-		    gotd_imsg_send_error_event(iev, PROC_REPO_WRITE,
-		        client->id, err) == -1) {
+		if (err && gotd_imsg_send_error_event(iev, PROC_REPO_WRITE,
+		    client->id, err) == -1) {
 			log_warnx("could not send error to parent: %s",
 			    err->msg);
 		}