From 487dc5be562be223512ed22b008c24db63463655 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 9 Jul 2007 01:10:32 +0100 Subject: [PATCH] Fix up iscsiboot missing prototype warnings --- src/include/usr/iscsiboot.h | 6 ++++++ src/usr/autoboot.c | 1 + src/{tests => usr}/iscsiboot.c | 1 + 3 files changed, 8 insertions(+) create mode 100644 src/include/usr/iscsiboot.h rename src/{tests => usr}/iscsiboot.c (97%) diff --git a/src/include/usr/iscsiboot.h b/src/include/usr/iscsiboot.h new file mode 100644 index 00000000..b17951d5 --- /dev/null +++ b/src/include/usr/iscsiboot.h @@ -0,0 +1,6 @@ +#ifndef _USR_ISCSIBOOT_H +#define _USR_ISCSIBOOT_H + +extern int iscsiboot ( const char *root_path ); + +#endif /* _USR_ISCSIBOOT_H */ diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 277e8b09..97b9a406 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -26,6 +26,7 @@ #include #include #include +#include #include /** @file diff --git a/src/tests/iscsiboot.c b/src/usr/iscsiboot.c similarity index 97% rename from src/tests/iscsiboot.c rename to src/usr/iscsiboot.c index 9331357d..f3910f14 100644 --- a/src/tests/iscsiboot.c +++ b/src/usr/iscsiboot.c @@ -4,6 +4,7 @@ #include #include #include +#include int iscsiboot ( const char *root_path ) { struct scsi_device scsi;