summaryrefslogtreecommitdiffstats
path: root/hooks.c
diff options
context:
space:
mode:
authoruncrustify <david@tethera.net>2019-06-13 07:31:01 -0300
committerDavid Bremner <david@tethera.net>2019-06-14 07:41:27 -0300
commit33382c2b5ba2537952a60ea378feff36961e4713 (patch)
tree983288c84237c204d9fbfa81fb387397fd46e942 /hooks.c
parentbe8f0ba92a302798b21cf02ef73c4ad783b66cba (diff)
cli: run uncrustify
This is the result of running $ uncrustify --replace --config devel/uncrustify.cfg *.c *.h in the top level source directory
Diffstat (limited to 'hooks.c')
-rw-r--r--hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks.c b/hooks.c
index 7348d322..59c58070 100644
--- a/hooks.c
+++ b/hooks.c
@@ -53,7 +53,7 @@ notmuch_run_hook (const char *db_path, const char *hook)
/* Flush any buffered output before forking. */
fflush (stdout);
- pid = fork();
+ pid = fork ();
if (pid == -1) {
fprintf (stderr, "Error: %s hook fork failed: %s\n", hook,
strerror (errno));
@@ -78,7 +78,7 @@ notmuch_run_hook (const char *db_path, const char *hook)
goto DONE;
}
- if (!WIFEXITED (status) || WEXITSTATUS (status)) {
+ if (! WIFEXITED (status) || WEXITSTATUS (status)) {
if (WIFEXITED (status)) {
fprintf (stderr, "Error: %s hook failed with status %d\n",
hook, WEXITSTATUS (status));