diff options
author | Kevin McCarthy <kevin@8t8.us> | 2019-01-04 18:45:01 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2019-01-04 19:50:16 -0800 |
commit | efa3afb539b9672ebd6e64cb0c16b98c5f6b8a60 (patch) | |
tree | 8fd166307801d97c801d6a2e75f255d6b0ba0f48 /buffy.c | |
parent | 248c2ee8ed7c0ff333ae076041107210c5acd641 (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 'buffy.c')
-rw-r--r-- | buffy.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -260,7 +260,7 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e mutt_extract_token (path, s, 0); strfcpy (buf, path->data, sizeof (buf)); - if(data == MUTT_UNMAILBOXES && mutt_strcmp(buf,"*") == 0) + if (data == MUTT_UNMAILBOXES && mutt_strcmp(buf,"*") == 0) { for (tmp = &Incoming; *tmp;) { @@ -280,7 +280,7 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e mutt_expand_path (buf, sizeof (buf)); /* Skip empty tokens. */ - if(!*buf) continue; + if (!*buf) continue; /* avoid duplicates */ p = realpath (buf, f1); @@ -293,9 +293,9 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e } } - if(data == MUTT_UNMAILBOXES) + if (data == MUTT_UNMAILBOXES) { - if(*tmp) + if (*tmp) { tmp1=(*tmp)->next; #ifdef USE_SIDEBAR @@ -310,7 +310,8 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, unsigned long data, BUFFER *e continue; } - if (!*tmp) { + if (!*tmp) + { *tmp = buffy_new (buf); #ifdef USE_SIDEBAR mutt_sb_notify_mailbox (*tmp, 1); |