]> diplodocus.org Git - nmh/commitdiff
uip/slocal.c: Tidy `verbose' logic in usr_file().
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 16:23:10 +0000 (17:23 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 25 May 2017 16:23:10 +0000 (17:23 +0100)
Boolean was being tested three times instead of once after recent
dead-code deletions.

uip/slocal.c

index f0c3aa07b355dbb348ee5c57ce36bbc032144a37..da879acf7027d479c5579623e7e2064ca42d289c 100644 (file)
@@ -973,15 +973,9 @@ usr_file (int fd, char *mailbox, int mbx_style)
 {
     int        md;
 
-    if (verbose)
-       verbose_printf ("delivering to file \"%s\"", mailbox);
-
-    if (mbx_style == MBOX_FORMAT) {
-       if (verbose)
-           verbose_printf (" (mbox style)");
-    } else {
-       if (verbose)
-           verbose_printf (" (mmdf style)");
+    if (verbose) {
+        verbose_printf("delivering to file \"%s\" (%s style)", mailbox,
+            mbx_style == MBOX_FORMAT ? "mbox" : "mmdf");
     }
 
     /* open and lock the file */