summaryrefslogtreecommitdiff
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:59:29 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-05-12 15:59:29 -0700
commit47c18b0cc56b645f57622047e8f30026e16eeb10 (patch)
tree22c89dc14cf6e4b559275c02d1304ae081418d63 /com32/cmenu
parent5627a322e59bb5a39e4f2fbb410c448e01081250 (diff)
downloadsyslinux-47c18b0cc56b645f57622047e8f30026e16eeb10.tar.gz
adv_menu.tpl: fix type of login_handler()
Fix the type of the login_handler() function. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/adv_menu.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/com32/cmenu/adv_menu.tpl b/com32/cmenu/adv_menu.tpl
index a1a5d96a..871c7827 100644
--- a/com32/cmenu/adv_menu.tpl
+++ b/com32/cmenu/adv_menu.tpl
@@ -221,7 +221,7 @@ void keys_handler(t_menusystem * ms __attribute__ (( unused )), t_menuitem * mi,
}
}
-t_handler_return login_handler(t_menuitem *mi)
+t_handler_return login_handler(t_menusystem *ms, t_menuitem *mi)
{
(void)mi; // Unused
char pwd[40];
@@ -229,6 +229,8 @@ t_handler_return login_handler(t_menuitem *mi)
int nc, nr;
t_handler_return rv;
+ (void)ms;
+
rv = ACTION_INVALID;
if (PWD_ROW < 0) return rv; // No need to authenticate