diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-18 11:27:37 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-08-18 11:27:37 +0000 |
commit | 292f01cbef6c1a9413d7bb35be67df4765f5c588 (patch) | |
tree | 99ea0f3662c8f4f1a9f050533631c5d5d6084765 | |
parent | 2008-08-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-292f01cbef6c1a9413d7bb35be67df4765f5c588.tar.bz2 |
Add missing prototypes.
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/timer/timer.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/amba/amba.c | 3 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/console.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/timer/timer.c | 4 |
5 files changed, 7 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c b/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c index 0f1fb30111..48683a94f9 100644 --- a/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c +++ b/c/src/lib/libbsp/sparc/erc32/gnatsupp/gnatsupp.c @@ -9,7 +9,7 @@ void __gnat_install_handler_common( int, int ); void -__gnat_install_handler () +__gnat_install_handler (void) { __gnat_install_handler_common (0x1d, 0x15); } diff --git a/c/src/lib/libbsp/sparc/erc32/timer/timer.c b/c/src/lib/libbsp/sparc/erc32/timer/timer.c index 33445831f0..5a7a463694 100644 --- a/c/src/lib/libbsp/sparc/erc32/timer/timer.c +++ b/c/src/lib/libbsp/sparc/erc32/timer/timer.c @@ -26,7 +26,7 @@ rtems_boolean Timer_driver_Find_average_overhead; rtems_boolean Timer_driver_Is_initialized = FALSE; -void Timer_initialize() +void Timer_initialize(void) { /* * Timer runs long and accurate enough not to require an interrupt. @@ -63,7 +63,7 @@ void Timer_initialize() #define LEAST_VALID 13 /* Don't trust a value lower than this */ #endif -int Read_timer() +int Read_timer(void) { uint32_t total; diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c index bb4bb31489..5012c85cb0 100644 --- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c +++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c @@ -33,7 +33,7 @@ int LEON3_Cpu_Index = 0; * amba_ahb_masters, amba_ahb_slaves and amba. */ -unsigned int getasr17(); +unsigned int getasr17(void); asm(" .text \n" "getasr17: \n" @@ -47,7 +47,6 @@ extern rtems_configuration_table Configuration; void bsp_predriver_hook(void) { int i; - unsigned int tmp; amba_apb_device dev; /* Scan the AMBA Plug&Play info at the default LEON3 area */ diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c index f1afed3b90..e1c07a9457 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/console.c +++ b/c/src/lib/libbsp/sparc/leon3/console/console.c @@ -90,7 +90,7 @@ int uarts = 0; static int isinit = 0; volatile LEON3_UART_Regs_Map *LEON3_Console_Uart[LEON3_APBUARTS]; -int scan_uarts() { +int scan_uarts(void) { int i; amba_apb_device apbuarts[LEON3_APBUARTS]; diff --git a/c/src/lib/libbsp/sparc/leon3/timer/timer.c b/c/src/lib/libbsp/sparc/leon3/timer/timer.c index 7c69e4ce2d..710fabf2e7 100644 --- a/c/src/lib/libbsp/sparc/leon3/timer/timer.c +++ b/c/src/lib/libbsp/sparc/leon3/timer/timer.c @@ -36,7 +36,7 @@ rtems_boolean Timer_driver_Is_initialized = FALSE; extern volatile LEON3_Timer_Regs_Map *LEON3_Timer_Regs; -void Timer_initialize() +void Timer_initialize(void) { /* * Timer runs long and accurate enough not to require an interrupt. @@ -57,7 +57,7 @@ void Timer_initialize() /* to start/stop the timer. */ #define LEAST_VALID 2 /* Don't trust a value lower than this */ -int Read_timer() +int Read_timer(void) { uint32_t total; |