]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Compilation error fixed
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 15 Nov 2009 22:42:11 +0000 (23:42 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 15 Nov 2009 22:42:11 +0000 (23:42 +0100)
commands/password.c
normal/auth.c

index 247e0bffdad1136d8496d27d7c7d761a11358f30..99b9938393214a85b781324ed1e164e82d8d0559 100644 (file)
@@ -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)
index 7d5a07d26a659c8c5cc7b530c990e8ab6f6eaebb..0a8b5bc825d1eda15aa740f2e1ee06a3c6ae9510 100644 (file)
@@ -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;
   }