diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 14:41:47 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 14:41:47 +0000 |
commit | b50cde42223dc78cab5447e12cb574c4fc9403b6 (patch) | |
tree | 2c454d6f8741f66f90cec18a708d435d34f785b3 /testsuites/psxtests | |
parent | 2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-b50cde42223dc78cab5447e12cb574c4fc9403b6.tar.bz2 |
2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1665/testing
* psximfs02/init.c: Fix uninitialized variable warning.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psximfs02/init.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 6353262b2c..089f7d8b0b 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,8 @@ +2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> + + PR 1665/testing + * psximfs02/init.c: Fix uninitialized variable warning. + 2010-08-09 Bharath Suri <bharath.s.jois@gmail.com> PR 1661/testing diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c index 98c0db81e9..861bf0cca5 100644 --- a/testsuites/psxtests/psximfs02/init.c +++ b/testsuites/psxtests/psximfs02/init.c @@ -27,7 +27,6 @@ rtems_task Init( { int status = 0; void *alloc_ptr = (void *)0; - Heap_Information_block Info; char linkname_n[20] = {0}; char linkname_p[20] = {0}; int i; @@ -120,7 +119,7 @@ rtems_task Init( free( alloc_ptr ); puts( "Allocate most of heap" ); - alloc_ptr = malloc( Info.Free.largest - 40 ); + alloc_ptr = malloc( malloc_free_space() - 40 ); puts( "Attempt to create /node-slink-2 for /node -- expect ENOMEM" ); status = symlink( "/node", "node-slink-2" ); |