Fix up iscsiboot missing prototype warnings
authorMichael Brown <mcb30@etherboot.org>
Mon, 9 Jul 2007 00:10:32 +0000 (01:10 +0100)
committerMichael Brown <mcb30@etherboot.org>
Mon, 9 Jul 2007 00:10:32 +0000 (01:10 +0100)
src/include/usr/iscsiboot.h [new file with mode: 0644]
src/usr/autoboot.c
src/usr/iscsiboot.c [moved from src/tests/iscsiboot.c with 97% similarity]

diff --git a/src/include/usr/iscsiboot.h b/src/include/usr/iscsiboot.h
new file mode 100644 (file)
index 0000000..b17951d
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef _USR_ISCSIBOOT_H
+#define _USR_ISCSIBOOT_H
+
+extern int iscsiboot ( const char *root_path );
+
+#endif /* _USR_ISCSIBOOT_H */
index 277e8b0..97b9a40 100644 (file)
@@ -26,6 +26,7 @@
 #include <usr/route.h>
 #include <usr/dhcpmgmt.h>
 #include <usr/imgmgmt.h>
+#include <usr/iscsiboot.h>
 #include <usr/autoboot.h>
 
 /** @file
similarity index 97%
rename from src/tests/iscsiboot.c
rename to src/usr/iscsiboot.c
index 9331357..f3910f1 100644 (file)
@@ -4,6 +4,7 @@
 #include <gpxe/iscsi.h>
 #include <gpxe/dhcp.h>
 #include <int13.h>
+#include <usr/iscsiboot.h>
 
 int iscsiboot ( const char *root_path ) {
        struct scsi_device scsi;