* grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.

This commit is contained in:
Szymon Janc 2010-09-11 20:08:37 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 4df7996d87
commit 3c70f225b2
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2010-09-11 Szymon Janc <szymon@janc.net.pl>
* grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
Shutdown using ACPI.

View file

@ -196,10 +196,11 @@ static const struct grub_arg_option options[] = {
};
static grub_err_t
grub_cmd_lsacpi (struct grub_extcmd *cmd, int argc __attribute__ ((unused)),
grub_cmd_lsacpi (struct grub_extcmd_context *ctxt,
int argc __attribute__ ((unused)),
char **args __attribute__ ((unused)))
{
if (!cmd->state[1].set)
if (!ctxt->state[1].set)
{
struct grub_acpi_rsdp_v10 *rsdp1 = grub_acpi_get_rsdpv1 ();
if (!rsdp1)
@ -212,7 +213,7 @@ grub_cmd_lsacpi (struct grub_extcmd *cmd, int argc __attribute__ ((unused)),
}
}
if (!cmd->state[0].set)
if (!ctxt->state[0].set)
{
struct grub_acpi_rsdp_v20 *rsdp2 = grub_acpi_get_rsdpv2 ();
if (!rsdp2)