]> granicus.if.org Git - neomutt/commit
split up 'if' statements that assign and test (3) 867/head
authorRichard Russon <rich@flatcap.org>
Tue, 17 Oct 2017 03:29:52 +0000 (04:29 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 17 Oct 2017 12:31:19 +0000 (13:31 +0100)
commitd008662ae2064d13ec87409fd779ce77e4e1c758
tree4f8020470bb70ea4c92fe1716770ada39ac3e225
parenta9a9c709c8e2cf6c8bf243fc5e2e3a70438a6449
split up 'if' statements that assign and test (3)

Split 'if' statements that combine an assignment with a test.
e.g. from:

    if ((rc = mutt_socket_readln(buf, bufsize, conn)) < 0)

To:

    rc = mutt_socket_readln(buf, bufsize, conn);
    if (rc < 0)

This makes the statements a little easier to read and debug.
22 files changed:
attach.c
commands.c
curs_main.c
enter.c
from.c
imap/command.c
imap/imap.c
imap/message.c
imap/util.c
init.c
keymap.c
mutt_socket.c
mutt_ssl.c
mutt_ssl_gnutls.c
muttlib.c
ncrypt/pgpmicalg.c
parse.c
query.c
send.c
sendlib.c
smtp.c
state.c