Compilation error fixed
This commit is contained in:
parent
228734ab02
commit
53eb42a6fa
2 changed files with 4 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#include <grub/auth.h>
|
||||
#include <grub/crypto.h>
|
||||
#include <grub/list.h>
|
||||
#include <grub/mm.h>
|
||||
#include <grub/misc.h>
|
||||
|
@ -61,10 +62,10 @@ grub_cmd_password (grub_command_t cmd __attribute__ ((unused)),
|
|||
pass = grub_zalloc (MAX_PASSLEN);
|
||||
if (!pass)
|
||||
return grub_errno;
|
||||
copylen = grub_strlen (argv[1]);
|
||||
copylen = grub_strlen (args[1]);
|
||||
if (copylen >= MAX_PASSLEN)
|
||||
copylen = MAX_PASSLEN - 1;
|
||||
grub_memcpy (pass, argv[1], copylen);
|
||||
grub_memcpy (pass, args[1], copylen);
|
||||
|
||||
err = grub_auth_register_authentication (args[0], check_password, pass);
|
||||
if (err)
|
||||
|
|
|
@ -164,7 +164,7 @@ grub_auth_check_authentication (const char *userlist)
|
|||
auto int hook (grub_list_t item);
|
||||
int hook (grub_list_t item)
|
||||
{
|
||||
if (grub_auth_strcmp (login, ((struct grub_auth_user *) item)->name) == 0)
|
||||
if (grub_strcmp (login, ((struct grub_auth_user *) item)->name) == 0)
|
||||
cur = (struct grub_auth_user *) item;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue