diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-13 04:31:17 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-04-13 12:04:36 +0200 |
commit | 0eaf3cce3c3ef70d161928f836594bd8f741b3a0 (patch) | |
tree | e356f17b49e0040dd98f638e56c65e3ea24a269e /src | |
parent | 36c099119b8a4df16bdd2d49362613955470de31 (diff) | |
download | ratpoison-0eaf3cce3c3ef70d161928f836594bd8f741b3a0.zip |
get_more_input: remove useless variable
Diffstat (limited to 'src')
-rw-r--r-- | src/input.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input.c b/src/input.c index 851e23c..7d8dd40 100644 --- a/src/input.c +++ b/src/input.c @@ -527,7 +527,6 @@ get_more_input (char *prompt, char *preinput, int history_id, { /* Emacs 21 uses a 513 byte string to store the keysym name. */ char keysym_buf[513]; - int keysym_bufsize = sizeof (keysym_buf); rp_screen *s = current_screen (); KeySym ch; unsigned int modifier; @@ -562,10 +561,10 @@ get_more_input (char *prompt, char *preinput, int history_id, for (;;) { - read_key (&ch, &modifier, keysym_buf, keysym_bufsize); + read_key (&ch, &modifier, keysym_buf, sizeof (keysym_buf)); modifier = x11_mask_to_rp_mask (modifier); - PRINT_DEBUG (("ch = %ld, modifier = %d, keysym_buf = %s, keysym_bufsize = %d\n", - ch, modifier, keysym_buf, keysym_bufsize)); + PRINT_DEBUG (("ch = %ld, modifier = %d, keysym_buf = %s", + ch, modifier, keysym_buf)); status = execute_edit_action (line, ch, modifier, keysym_buf); if (status == EDIT_DELETE || status == EDIT_INSERT || status == EDIT_MOVE |