From: David Levine Date: Mon, 18 Mar 2013 13:54:55 +0000 (-0500) Subject: Fixed use of WIFEXITED in mhfixmsg.c. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f4e84752c9c8de7dcb266054135147434b0dc3b8?ds=sidebyside;hp=--cc Fixed use of WIFEXITED in mhfixmsg.c. --- f4e84752c9c8de7dcb266054135147434b0dc3b8 diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 1f240e45..d6903974 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -1815,13 +1815,10 @@ static int remove_file (char *file) { if (rmmproc) { char *rmm_command = concat (rmmproc, " ", file, NULL); - int status = WIFEXITED (status = system (rmm_command)) - ? WEXITSTATUS (status) - : NOTOK; + int status = system (rmm_command); free (rmm_command); - - return status; + return WIFEXITED (status) ? WEXITSTATUS (status) : NOTOK; } else { /* This is OK for a non-message file, it still uses the BACKUP_PREFIX form. The backup file will be in the same