summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:51:19 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 10:51:19 -0500
commit68670555c9c25cb5528e4d2b6078c73933e08a50 (patch)
tree1b6e0ad5aee0239321a8406aad27110c5d3db6a5 /c/src/lib/libbsp/shared
parentleon3/.../bspstart.c: Fix missing prototype warnings (diff)
downloadrtems-68670555c9c25cb5528e4d2b6078c73933e08a50.tar.bz2
libbsp/shared/bspinit.c: Fix missing prototype warnings
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/bspinit.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/bspinit.c b/c/src/lib/libbsp/shared/bspinit.c
index b617b5cb3d..d7dd836ef9 100644
--- a/c/src/lib/libbsp/shared/bspinit.c
+++ b/c/src/lib/libbsp/shared/bspinit.c
@@ -17,14 +17,18 @@
#endif
/*
+ * Necessary prototypes
+ */
+rtems_task Init (rtems_task_argument arg);
+int main (int argc, char* argv[]);
+
+/*
* This routine calls main from a confdefs.h default Init task
* set up. The bootcard will provide the task argument as
* command line string (ASCIIZ).
*/
-int main (int argc, char* argv[]);
-
-void Init (rtems_task_argument arg)
+rtems_task Init (rtems_task_argument arg)
{
const char* boot_cmdline = *((const char**) arg);
char* cmdline = 0;