[rtems commit] shell: Make rtems_shell_main_joel() static

Sebastian Huber sebh at rtems.org
Thu Nov 20 13:53:25 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 18 10:13:55 2014 +0100

shell: Make rtems_shell_main_joel() static

---

 cpukit/libmisc/shell/shell_script.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/cpukit/libmisc/shell/shell_script.c b/cpukit/libmisc/shell/shell_script.c
index b198fa1..b46e124 100644
--- a/cpukit/libmisc/shell/shell_script.c
+++ b/cpukit/libmisc/shell/shell_script.c
@@ -106,12 +106,7 @@ static int findOnPATH(
 #endif
 }
 
-int rtems_shell_main_joel(
-  int    argc,
-  char **argv
-);
-
-int rtems_shell_main_joel(
+static int rtems_shell_main_joel(
   int    argc,
   char **argv
 )
@@ -352,6 +347,4 @@ int rtems_shell_script_file(
    *        have any way for a shell script to access them.
    */
   return rtems_shell_main_joel( scriptArgc, scriptArgv );
-
-  return 0;
 }



More information about the vc mailing list