projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove yet anoter round of str_* functions, replaced with their inlineable
[apps/madmutt.git]
/
keymap.c
diff --git
a/keymap.c
b/keymap.c
index
76ac63c
..
0c450f7
100644
(file)
--- a/
keymap.c
+++ b/
keymap.c
@@
-272,9
+272,9
@@
static const char *get_func (struct binding_t *bindings, int op)
return NULL;
}
return NULL;
}
-static void push_string
(
char *s)
+static void push_string
(const
char *s)
{
{
- char *pp, *p = s + m_strlen(s) - 1;
+ c
onst c
har *pp, *p = s + m_strlen(s) - 1;
size_t l;
int i, op = OP_NULL;
size_t l;
int i, op = OP_NULL;
@@
-359,7
+359,7
@@
int km_dokey (int menu)
if (!map)
return (retry_generic (menu, NULL, 0, 0));
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);
/* ncurses doesn't return on resized screen when timeout is set to zero */
if (menu != MENU_EDITOR)
timeout ((Timeout > 0 ? Timeout : 60) * 1000);
@@
-403,7
+403,7
@@
int km_dokey (int menu)
/* careful not to feed the <..> as one token. otherwise
* push_string() will push the bogus op right back! */
mutt_ungetch ('>', 0);
/* 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;
}
mutt_ungetch ('<', 0);
break;
}
@@
-491,7
+491,7
@@
int km_expand_key (char *s, size_t len, struct keymap_t *map)
if (!map)
return (0);
if (!map)
return (0);
-
FOREVER
{
+
for (;;)
{
strfcpy (s, km_keyname (map->keys[p]), len);
len -= (l = m_strlen(s));
strfcpy (s, km_keyname (map->keys[p]), len);
len -= (l = m_strlen(s));