tree = tree->next;
*max_depth = 0;
- FOREVER {
+ for (;;) {
if (depth > *max_depth)
*max_depth = 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)))
myarrow[width + 1] = 0;
new_tree = p_new(char, (2 + depth * width));
if (start_depth > 1) {
- strncpy (new_tree, pfx, (start_depth - 1) * width);
- strfcpy (new_tree + (start_depth - 1) * width,
- arrow, (1 + depth - start_depth) * width + 2);
+ memcpy(new_tree, pfx, (start_depth - 1) * width);
+ m_strcpy(new_tree + (start_depth - 1) * width,
+ (1 + depth - start_depth) * width + 2, arrow);
}
else
- strfcpy (new_tree, arrow, 2 + depth * width);
+ m_strcpy(new_tree, 2 + depth * width, arrow);
tree->message->tree = new_tree;
}
}
LIST *curlist, *oldlist, *newlist, *subjects = NULL;
int rc = 0;
- FOREVER {
+ for (;;) {
while (!cur->message)
cur = cur->child;
insert_message (&parent->child, parent, cur);
parent->sort_children = 1;
tmp = cur;
- FOREVER {
+ for (;;) {
while (!tmp->message)
tmp = tmp->child;
while (reverse && cur->next)
cur = cur->next;
- FOREVER {
+ for (;;) {
if (cur->message && cur->message->virtual >= 0)
return (cur->message);
return (min_unread);
}
- FOREVER {
+ for (;;) {
cur = thread->message;
if (cur) {
for (p = brk; !done && p; p = p->parent)
for (ref = cur->message->env->references; p->message && ref;
ref = ref->next)
- if (!str_casecmp (ref->data, p->message->env->message_id)) {
+ if (!m_strcasecmp(ref->data, p->message->env->message_id)) {
done = 1;
break;
}