summaryrefslogtreecommitdiffstats
path: root/mh.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 /mh.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 'mh.c')
-rw-r--r--mh.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mh.c b/mh.c
index 1f59ba87..5efee5f7 100644
--- a/mh.c
+++ b/mh.c
@@ -1121,7 +1121,8 @@ static struct maildir *skip_duplicates (struct maildir *p, struct maildir **last
* likely be at the head of the list. but it is present for consistency with
* the check at the top of the for() loop in maildir_delayed_parsing().
*/
- while (!p->h || p->header_parsed) {
+ while (!p->h || p->header_parsed)
+ {
*last = p;
p = p->next;
}
@@ -1150,7 +1151,9 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir **md,
#endif
#if HAVE_DIRENT_D_INO
-#define DO_SORT() do { \
+#define DO_SORT() \
+ do \
+ { \
if (!sort) \
{ \
dprint (4, (debugfile, "maildir: need to sort %s by inode\n", ctx->path)); \
@@ -1163,7 +1166,7 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir **md,
p = skip_duplicates (p, &last); \
mutt_buffer_printf (fn, "%s/%s", ctx->path, p->h->path); \
} \
- } while(0)
+ } while (0)
#else
#define DO_SORT() /* nothing */
#endif
@@ -2660,7 +2663,8 @@ int maildir_check_empty (const char *path)
realpath = mutt_buffer_pool_get ();
- do {
+ do
+ {
/* we do "cur" on the first iteration since its more likely that we'll
* find old messages without having to scan both subdirs
*/