Received: from eggs.gnu.org ([208.118.235.92]:54593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th0RL-0006l5-Tc for qemu-devel@nongnu.org; Fri, 07 Dec 2012 11:06:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Th0RH-0006YC-19 for qemu-devel@nongnu.org; Fri, 07 Dec 2012 11:06:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Th0RG-0006Xr-PQ for qemu-devel@nongnu.org; Fri, 07 Dec 2012 11:06:10 -0500 From: Eduardo Habkost Date: Fri, 7 Dec 2012 14:07:33 -0200 Message-Id: <1354896456-21120-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1354896456-21120-1-git-send-email-ehabkost@redhat.com> References: <1354896456-21120-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] multiboot: use FWCfgState* as argument instead of void* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , Anthony Liguori There's no point in using void* if we can simply use the right type for the argument (FWCfgState*). Signed-off-by: Eduardo Habkost --- Cc: Anthony Liguori --- hw/multiboot.c | 2 +- hw/multiboot.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index 09ec5b2..06bbf4c 100644 --- a/hw/multiboot.c +++ b/hw/multiboot.c @@ -124,7 +124,7 @@ static void mb_add_mod(MultibootState *s, s->mb_mods_count++; } -int load_multiboot(void *fw_cfg, +int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, diff --git a/hw/multiboot.h b/hw/multiboot.h index 98fb1b7..33c82b1 100644 --- a/hw/multiboot.h +++ b/hw/multiboot.h @@ -1,7 +1,9 @@ #ifndef QEMU_MULTIBOOT_H #define QEMU_MULTIBOOT_H -int load_multiboot(void *fw_cfg, +#include "fw_cfg.h" + +int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, -- 1.7.11.7