From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5B9C06DE12DD for ; Wed, 12 Jun 2019 04:35:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.048 X-Spam-Level: X-Spam-Status: No, score=-0.048 tagged_above=-999 required=5 tests=[AWL=-0.047, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 54m_t_MmVfkD for ; Wed, 12 Jun 2019 04:35:10 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 46E376DE1326 for ; Wed, 12 Jun 2019 04:35:01 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1hb1Wu-0003TM-Ei; Wed, 12 Jun 2019 07:35:00 -0400 Received: (nullmailer pid 2985 invoked by uid 1000); Wed, 12 Jun 2019 11:35:08 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 6/7] cli: uncrustify hooks.c Date: Wed, 12 Jun 2019 08:35:05 -0300 Message-Id: <20190612113506.2892-7-david@tethera.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190612113506.2892-1-david@tethera.net> References: <20190612113506.2892-1-david@tethera.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jun 2019 11:35:11 -0000 --- hooks.c | 4 ++-- 1 file 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)); -- 2.20.1