]> diplodocus.org Git - nmh/commitdiff
Join the lines of another couple of `else if'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 22 Aug 2017 23:17:22 +0000 (00:17 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 23 Aug 2017 22:31:41 +0000 (23:31 +0100)
It's misleading to have them on separate lines, especially when there's
a blank line in between.

sbr/addrsbr.c
sbr/ext_hook.c

index 49a6b6532dcc5b060bfc9a9656eb1637e581cdf9..6f0dcac4c77ac0eb59d2c6269cf9247fefcade1f 100644 (file)
@@ -224,9 +224,7 @@ auxformat (struct mailname *mp, int extras)
 
        if (mp->m_nohost)
            strncpy (addr, FENDNULL(mp->m_mbox), sizeof(addr));
 
        if (mp->m_nohost)
            strncpy (addr, FENDNULL(mp->m_mbox), sizeof(addr));
-       else
-
-       if (mp->m_type != UUCPHOST) {
+       else if (mp->m_type != UUCPHOST) {
            if (mp->m_host)
                snprintf (addr, sizeof(addr), "%s%s@%s", FENDNULL(mp->m_path),
                          FENDNULL(mp->m_mbox), mp->m_host);
            if (mp->m_host)
                snprintf (addr, sizeof(addr), "%s%s@%s", FENDNULL(mp->m_path),
                          FENDNULL(mp->m_mbox), mp->m_host);
index 63869e57f6db00731a406a21f519bc72a705235c..befbd94b48c2dbd2ba30ef631a70322f8893a7b3 100644 (file)
@@ -60,8 +60,6 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2)
        }
 
        return (NOTOK);
        }
 
        return (NOTOK);
-    }
-
-    else
+    } else
        return (OK);
 }
        return (OK);
 }