diff contrib/chg/procutil.c @ 35959:9724f54923ec

chg: enable clang-format on all .c and .h files Nothing in here looks awful, so I think we may as well just do it. # skip-blame because it's just reformatting with no functionality change Differential Revision: https://phab.mercurial-scm.org/D2058
author Augie Fackler <augie@google.com>
date Tue, 06 Feb 2018 05:24:28 -0500
parents ac5527021097
children 763b45bc4483
line wrap: on
line diff
--- a/contrib/chg/procutil.c	Wed Feb 07 06:28:43 2018 -0500
+++ b/contrib/chg/procutil.c	Tue Feb 06 05:24:28 2018 -0500
@@ -54,7 +54,7 @@
 		goto error;
 
 	forwardsignal(sig);
-	if (raise(sig) < 0)  /* resend to self */
+	if (raise(sig) < 0) /* resend to self */
 		goto error;
 	if (sigaction(sig, &sa, &oldsa) < 0)
 		goto error;
@@ -205,8 +205,8 @@
 		close(pipefds[0]);
 		close(pipefds[1]);
 
-		int r = execle("/bin/sh", "/bin/sh", "-c", pagercmd, NULL,
-				envp);
+		int r =
+		    execle("/bin/sh", "/bin/sh", "-c", pagercmd, NULL, envp);
 		if (r < 0) {
 			abortmsgerrno("cannot start pager '%s'", pagercmd);
 		}