return NULL;
}
-static void push_string (char *s)
+static void push_string(const char *s)
{
- char *pp, *p = s + m_strlen(s) - 1;
+ const char *pp, *p = s + m_strlen(s) - 1;
size_t l;
int i, op = OP_NULL;
if (!map)
return (retry_generic (menu, NULL, 0, 0));
- FOREVER {
+ for (;;) {
/* ncurses doesn't return on resized screen when timeout is set to zero */
if (menu != MENU_EDITOR)
timeout ((Timeout > 0 ? Timeout : 60) * 1000);
/* careful not to feed the <..> as one token. otherwise
* push_string() will push the bogus op right back! */
mutt_ungetch ('>', 0);
- push_string (func);
+ push_string(func);
mutt_ungetch ('<', 0);
break;
}
if (!map)
return (0);
- FOREVER {
+ for (;;) {
strfcpy (s, km_keyname (map->keys[p]), len);
len -= (l = m_strlen(s));