X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=thread.c;fp=thread.c;h=ae5ebbe1ed6516f29b02faf18eb205f6e5576f7e;hp=1bf0b5fd40fa2f020057d1275e1ed94524f6ced7;hb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e;hpb=0c12d960399d14b4143b2bb91a96bdaca64e4c56 diff --git a/thread.c b/thread.c index 1bf0b5f..ae5ebbe 100644 --- a/thread.c +++ b/thread.c @@ -124,7 +124,7 @@ static void calculate_visibility (CONTEXT * ctx, int *max_depth) tree = tree->next; *max_depth = 0; - FOREVER { + for (;;) { if (depth > *max_depth) *max_depth = depth; @@ -180,7 +180,7 @@ static void calculate_visibility (CONTEXT * ctx, int *max_depth) /* now fix up for the OPTHIDETOP* options if necessary */ if (hide_top_limited || hide_top_missing) { tree = ctx->tree; - FOREVER { + for (;;) { if (!tree->visible && tree->deep && tree->subtree_visible < 2 && ((tree->message && hide_top_limited) || (!tree->message && hide_top_missing))) @@ -324,7 +324,7 @@ static LIST *make_subject_list (THREAD * cur, time_t * dateptr) LIST *curlist, *oldlist, *newlist, *subjects = NULL; int rc = 0; - FOREVER { + for (;;) { while (!cur->message) cur = cur->child; @@ -463,7 +463,7 @@ static void pseudo_threads (CONTEXT * ctx) insert_message (&parent->child, parent, cur); parent->sort_children = 1; tmp = cur; - FOREVER { + for (;;) { while (!tmp->message) tmp = tmp->child; @@ -899,7 +899,7 @@ static HEADER *find_virtual (THREAD * cur, int reverse) while (reverse && cur->next) cur = cur->next; - FOREVER { + for (;;) { if (cur->message && cur->message->virtual >= 0) return (cur->message); @@ -1081,7 +1081,7 @@ int _mutt_traverse_thread (CONTEXT * ctx, HEADER * cur, int flag) return (min_unread); } - FOREVER { + for (;;) { cur = thread->message; if (cur) {