[syslinux:elflink] localboot: Include header files for function prototypes
syslinux-bot for Matt Fleming
matt.fleming at intel.com
Tue Apr 17 11:24:17 PDT 2012
Commit-ID: fde7c70aece27186cc636df51d25c1099ab7e663
Gitweb: http://www.syslinux.org/commit/fde7c70aece27186cc636df51d25c1099ab7e663
Author: Matt Fleming <matt.fleming at intel.com>
AuthorDate: Tue, 3 Apr 2012 12:58:52 +0100
Committer: Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 17 Apr 2012 10:58:35 +0100
localboot: Include header files for function prototypes
... to avoid the following warnings,
localboot.c: In function ‘local_boot’:
localboot.c:38:2: warning: implicit declaration of function ‘vgaclearmode’
localboot.c:40:2: warning: implicit declaration of function ‘writestr’
localboot.c:41:2: warning: implicit declaration of function ‘crlf’
localboot.c:42:2: warning: implicit declaration of function ‘cleanup_hardware’
localboot.c:76:2: warning: implicit declaration of function ‘memcpy’
Signed-off-by: Matt Fleming <matt.fleming at intel.com>
---
core/localboot.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/core/localboot.c b/core/localboot.c
index c6993fc..ff21e99 100644
--- a/core/localboot.c
+++ b/core/localboot.c
@@ -11,7 +11,11 @@
* -----------------------------------------------------------------------
*/
#include <sys/cpu.h>
+#include <sys/io.h>
+#include <string.h>
#include <core.h>
+#include <fs.h>
+#include <bios.h>
/*
* localboot.c
@@ -73,7 +77,7 @@ void local_boot(int16_t ax)
kaboom();
cli(); /* Abandon hope, ye who enter here */
- memcpy(0x07C00, trackbuf, 512);
+ memcpy((void *)0x07C00, trackbuf, 512);
ireg.esi.w[0] = OFFS(trackbuf);
ireg.edi.w[0] = 0x07C00;
More information about the Syslinux-commits
mailing list