From d767650585952d5c0d478992e7ba90569c6c51c9 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 6 Jan 2006 21:37:36 +0100 Subject: [PATCH] check_hotkeys_common(): @res -> @found. --- src/bfu/hotkey.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bfu/hotkey.c b/src/bfu/hotkey.c index 107fa5a4..0c3078de 100644 --- a/src/bfu/hotkey.c +++ b/src/bfu/hotkey.c @@ -138,7 +138,7 @@ check_hotkeys_common(struct menu *menu, unsigned char hotkey, struct terminal *t do { struct menu_item *item; unsigned char *text; - int res; + int found; if (++i == menu->size) i = 0; @@ -158,15 +158,15 @@ check_hotkeys_common(struct menu *menu, unsigned char hotkey, struct terminal *t #ifdef CONFIG_DEBUG if (key_pos < 0) key_pos = -key_pos; #endif - res = (key_pos && (toupper(text[key_pos]) == key)); + found = (key_pos && (toupper(text[key_pos]) == key)); } else { /* Does the key (upcased) matches first letter * of menu item left text ? */ - res = (toupper(*text) == key); + found = (toupper(*text) == key); } - if (res) { + if (found) { menu->selected = i; return 1; }