summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-01-04 18:45:01 -0800
committerKevin McCarthy <kevin@8t8.us>2019-01-04 19:50:16 -0800
commitefa3afb539b9672ebd6e64cb0c16b98c5f6b8a60 (patch)
tree8fd166307801d97c801d6a2e75f255d6b0ba0f48 /commands.c
parent248c2ee8ed7c0ff333ae076041107210c5acd641 (diff)
Clean up formatting.
Add spaces after if, else, while, for, switch. Unify the brace placement style. The vast majority of the code uses Allman style so convert the relatively few K&R braces over.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index 11e69033..e95cfc9d 100644
--- a/commands.c
+++ b/commands.c
@@ -155,7 +155,7 @@ int mutt_display_message (HEADER *cur)
{
if (cur->security & APPLICATION_SMIME)
crypt_smime_getkeys (cur->env);
- if(!crypt_valid_passphrase(cur->security))
+ if (!crypt_valid_passphrase(cur->security))
return 0;
cmflags |= MUTT_CM_VERIFY;
@@ -350,7 +350,7 @@ void ci_bounce_message (HEADER *h)
}
}
- if(h)
+ if (h)
strfcpy(prompt, _("Bounce message to: "), sizeof(prompt));
else
strfcpy(prompt, _("Bounce tagged messages to: "), sizeof(prompt));
@@ -437,7 +437,7 @@ static void pipe_msg (HEADER *h, FILE *fp, int decode, int print)
if (WithCrypto && decode && h->security & ENCRYPT)
{
- if(!crypt_valid_passphrase(h->security))
+ if (!crypt_valid_passphrase(h->security))
return;
endwin ();
}
@@ -476,7 +476,7 @@ static int _mutt_pipe_message (HEADER *h, char *cmd,
if (WithCrypto && decode)
{
mutt_parse_mime_message (Context, h);
- if(h->security & ENCRYPT && !crypt_valid_passphrase(h->security))
+ if (h->security & ENCRYPT && !crypt_valid_passphrase(h->security))
return 1;
}
mutt_endwin (NULL);
@@ -499,7 +499,7 @@ static int _mutt_pipe_message (HEADER *h, char *cmd,
if (WithCrypto && decode)
{
for (i = 0; i < Context->vcount; i++)
- if(Context->hdrs[Context->v2r[i]]->tagged)
+ if (Context->hdrs[Context->v2r[i]]->tagged)
{
mutt_message_hook (Context, Context->hdrs[Context->v2r[i]], MUTT_MESSAGEHOOK);
mutt_parse_mime_message(Context, Context->hdrs[Context->v2r[i]]);
@@ -684,7 +684,7 @@ void mutt_shell_escape (void)
{
if (!buf[0] && Shell)
strfcpy (buf, Shell, sizeof (buf));
- if(buf[0])
+ if (buf[0])
{
mutt_window_clearline (MuttMessageWindow, 0);
mutt_endwin (NULL);