char buf[LONG_STRING];
menu_make_entry (buf, sizeof (buf), m, n);
- return (regexec (re, buf, 0, NULL, 0));
+ return regexec (re, buf, 0, NULL, 0);
}
MUTTMENU *mutt_new_menu (void)
p->pagelen = LINES - 3;
p->color = default_color;
p->search = menu_search_generic;
- return (p);
+ return p;
}
void mutt_menuDestroy (MUTTMENU ** p)
if (mutt_get_field ((op == OP_SEARCH) ? _("Search for: ") :
_("Reverse search for: "),
buf, sizeof (buf), M_CLEAR) != 0 || !buf[0])
- return (-1);
+ return -1;
m_strreplace(&menu->searchBuf, buf);
menu->searchDir = (op == OP_SEARCH) ? M_SEARCH_DOWN : M_SEARCH_UP;
}
if (!menu->searchBuf) {
mutt_error _("No search pattern.");
- return (-1);
+ return -1;
}
}
regerror (r, &re, buf, sizeof (buf));
regfree (&re);
mutt_error ("%s", buf);
- return (-1);
+ return -1;
}
r = menu->current + searchDir;
regfree (&re);
mutt_error _("Not found.");
- return (-1);
+ return -1;
}
static int menu_dialog_translate_op (int i)
if (menu->redraw & REDRAW_FULL) {
menu_redraw_full (menu);
/* allow the caller to do any local configuration */
- return (OP_REDRAW);
+ return OP_REDRAW;
}
if (!menu->dialog)
break;
default:
- return (i);
+ return i;
}
}
/* not reached */