summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-04-28 13:52:59 +1000
committerChris Johns <chrisj@rtems.org>2012-04-28 13:52:59 +1000
commit6fa80fce36b2746f2780c604541939bc9f1b447c (patch)
tree2c678d8054ef982dfd4d634e1cdd5dac68999b61 /main.c
parentff4ac1e4b784f60d29d7aa5eec9c6f2e776da0dd (diff)
Remove warnings.
Diffstat (limited to 'main.c')
-rw-r--r--main.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/main.c b/main.c
index cb24849..312513d 100644
--- a/main.c
+++ b/main.c
@@ -52,6 +52,8 @@ int remote_debug;
#include <rtl-shell.h>
#include <rtl-trace.h>
+#include <dlfcn-shell.h>
+
/*
* The tarfile is built automatically externally so we need to account
* for the leading symbol on the names.
@@ -200,7 +202,7 @@ rtems_driver_address_table rtems_idedisk_io_ops = {
/**
* Start the RTEMS Shell.
*/
-void
+static void
shell_start (void)
{
rtems_status_code sc;
@@ -213,7 +215,7 @@ shell_start (void)
/**
* Run the /shell-init script.
*/
-void
+static void
shell_init_script (void)
{
rtems_status_code sc;
@@ -224,7 +226,7 @@ shell_init_script (void)
printf ("error: running shell script: %s (%d)\n", rtems_status_text (sc), sc);
}
-int
+static int
setup_ramdisk (void)
{
rtems_device_major_number major;
@@ -249,7 +251,7 @@ setup_ramdisk (void)
return 0;
}
-int
+static int
setup_flashdisk (void)
{
#if RTEMS_APP_FLASHDISK
@@ -279,7 +281,7 @@ setup_flashdisk (void)
extern rtems_status_code rtems_ide_part_table_initialize (const char* );
#endif
-int
+static int
setup_idedisk (const char* path)
{
#if RTEMS_APP_IDEDISK
@@ -300,7 +302,7 @@ setup_idedisk (const char* path)
return 0;
}
-int
+static int
setup_rootfs (void)
{
rtems_status_code sc;
@@ -320,7 +322,7 @@ setup_rootfs (void)
return 0;
}
-int
+static int
shell_flash_erase (int argc, char* argv[])
{
#if RTEMS_APP_FLASHDISK
@@ -369,11 +371,6 @@ shell_flash_erase (int argc, char* argv[])
return 0;
}
-int shell_dlopen (int argc, char* argv[]);
-int shell_dlclose (int argc, char* argv[]);
-int shell_dlsym (int argc, char* argv[]);
-int shell_dlcall (int argc, char* argv[]);
-
int
main (int argc, char* argv[])
{