Mercurial > flash_v2
changeset 782:a9ff9f7e3010
* tests/fptest.c: Make all variables static to avoid any risk
of collisions with symbols defined elsewhere in eCos.
| author | jlarmour |
|---|---|
| date | Mon, 03 Mar 2003 05:15:52 +0000 |
| parents | 51ca07f4ffe3 |
| children | 14f00bde1f7a |
| files | packages/kernel/current/ChangeLog packages/kernel/current/tests/fptest.c |
| diffstat | 2 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2003-03-03 Jonathan Larmour <jifl@eCosCentric.com> + + * tests/fptest.c: Make all variables static to avoid any risk + of collisions with symbols defined elsewhere in eCos. + 2003-02-27 Jonathan Larmour <jifl@eCosCentric.com> * include/kapidata.h: Revert change of 2001-08-23 and instead make
--- a/packages/kernel/current/tests/fptest.c +++ b/packages/kernel/current/tests/fptest.c @@ -89,19 +89,19 @@ #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_MINIMUM) -cyg_uint8 stacks[3][STACK_SIZE]; -cyg_handle_t thread[3]; -cyg_thread thread_struct[3]; +static cyg_uint8 stacks[3][STACK_SIZE]; +static cyg_handle_t thread[3]; +static cyg_thread thread_struct[3]; //========================================================================== // Alarm parameters. -cyg_alarm alarm_struct; -cyg_handle_t alarm; +static cyg_alarm alarm_struct; +static cyg_handle_t alarm; -cyg_count8 cur_thread = 0; -cyg_count32 alarm_ticks = 0; -cyg_count32 run_ticks = RUN_TICKS; +static cyg_count8 cur_thread = 0; +static cyg_count32 alarm_ticks = 0; +static cyg_count32 run_ticks = RUN_TICKS; //==========================================================================
