[syslinux:elflink] sys/fileclose.c: Fix build warning from missing prototype

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

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

sys/fileclose.c: Fix build warning from missing prototype

Include fs.h to avoid the following warning,

sys/fileclose.c: In function ‘__file_close’:
sys/fileclose.c:42:2: warning: implicit declaration of function ‘close_file’

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

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

diff --git a/com32/lib/sys/fileclose.c b/com32/lib/sys/fileclose.c
index 26e1508..699dbe3 100644
--- a/com32/lib/sys/fileclose.c
+++ b/com32/lib/sys/fileclose.c
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <com32.h>
 #include <string.h>
+#include <fs.h>
 #include "file.h"
 int __file_close(struct file_info *fp)

More information about the Syslinux-commits mailing list