* grub-core/normal/auth.c (grub_auth_check_authentication):

Set-but-not-used variable removed.
This commit is contained in:
Szymon Janc 2010-10-17 15:41:54 +02:00
parent d82df574cd
commit 800e6a9be5
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-10-17 Szymon Janc <szymon@janc.net.pl>
* grub-core/normal/auth.c (grub_auth_check_authentication):
Set-but-not-used variable removed.
2010-10-17 Vladimir Serbinenko <phcoder@gmail.com> 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
* docs/grub.texi (GNU/Linux): Document APM unavailability with * docs/grub.texi (GNU/Linux): Document APM unavailability with

View file

@ -201,7 +201,6 @@ grub_auth_check_authentication (const char *userlist)
{ {
char login[1024]; char login[1024];
struct grub_auth_user *cur = NULL; struct grub_auth_user *cur = NULL;
grub_err_t err;
static unsigned long punishment_delay = 1; static unsigned long punishment_delay = 1;
char entered[GRUB_AUTH_MAX_PASSLEN]; char entered[GRUB_AUTH_MAX_PASSLEN];
struct grub_auth_user *user; struct grub_auth_user *user;
@ -233,7 +232,7 @@ grub_auth_check_authentication (const char *userlist)
if (!cur || ! cur->callback) if (!cur || ! cur->callback)
goto access_denied; goto access_denied;
err = cur->callback (login, entered, cur->arg); cur->callback (login, entered, cur->arg);
if (is_authenticated (userlist)) if (is_authenticated (userlist))
{ {
punishment_delay = 1; punishment_delay = 1;