[syslinux:elflink] getcwd.c: Include core_getcwd() prototype

syslinux-bot for Matt Fleming matt.fleming at intel.com
Tue Apr 17 11:24:08 PDT 2012

Commit-ID:  bdd7cbd0c05cbd9b362948c8b2430ba414552c25
Gitweb:     http://www.syslinux.org/commit/bdd7cbd0c05cbd9b362948c8b2430ba414552c25
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 30 Mar 2012 13:07:12 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 17 Apr 2012 10:57:13 +0100

getcwd.c: Include core_getcwd() prototype

Fix the following warning by including the appropriate header,

getcwd.c: In function ‘getcwd’:
getcwd.c:10:5: warning: implicit declaration of function ‘core_getcwd’
getcwd.c:10:5: warning: return makes pointer from integer without a cast

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

 com32/lib/getcwd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/com32/lib/getcwd.c b/com32/lib/getcwd.c
index 2939c07..d5fa9d7 100644
--- a/com32/lib/getcwd.c
+++ b/com32/lib/getcwd.c
@@ -4,6 +4,7 @@
 #include <com32.h>
 #include <syslinux/pmapi.h>
+#include <fs.h>
 char *getcwd(char *buf, size_t size)

More information about the Syslinux-commits mailing list