[syslinux:firmware] efi: fix prototype of efi_erase()

syslinux-bot for Matt Fleming matt.fleming at intel.com
Thu Jun 20 06:51:25 PDT 2013

Commit-ID:  ec89781d99b61ebfb80b3aa60df8edfbafa36a8d
Gitweb:     http://www.syslinux.org/commit/ec89781d99b61ebfb80b3aa60df8edfbafa36a8d
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Thu, 20 Jun 2013 13:05:52 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Thu, 20 Jun 2013 13:05:52 +0100

efi: fix prototype of efi_erase()

and address the following compiler warning,

efi/main.c:263:2: warning: initialization from incompatible pointer type [enabled by default]
efi/main.c:263:2: warning: (near initialization for ‘efi_ops.erase’) [enabled by default]

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 efi/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/efi/main.c b/efi/main.c
index e6095fc..84ecb20 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -227,8 +227,7 @@ static void efi_get_mode(int *cols, int *rows)
 	*cols = c;
-static void efi_erase(const struct term_state *st,
-		       int x0, int y0, int x1, int y1)
+static void efi_erase(int x0, int y0, int x1, int y1, uint8_t attribute)
 	int cols, rows;

More information about the Syslinux-commits mailing list