[rtems commit] libbsp/shared/bspinit.c: Fix missing prototype warnings

Joel Sherrill joel at rtems.org
Sun Sep 22 15:45:25 UTC 2013


Module:    rtems
Branch:    master
Commit:    68670555c9c25cb5528e4d2b6078c73933e08a50
Changeset: http://git.rtems.org/rtems/commit/?id=68670555c9c25cb5528e4d2b6078c73933e08a50

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Sep 22 10:51:19 2013 -0500

libbsp/shared/bspinit.c: Fix missing prototype warnings

---

 c/src/lib/libbsp/shared/bspinit.c |   10 +++++++---
 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 b617b5c..d7dd836 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;




More information about the vc mailing list