summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-05 13:52:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-05 15:17:43 +0200
commit888edf69a9f9db980914fc5f0ed61d62fecaf3f9 (patch)
tree71e3a6e9d8f94ae6d65040e37f30e6242f17eaef
parent390cfcda71c5bb0d53493210bcf4a15ee29c0498 (diff)
downloadrtems-888edf69a9f9db980914fc5f0ed61d62fecaf3f9.tar.bz2
sptests/sprbtree01: Reduce stack usage
-rw-r--r--testsuites/sptests/sprbtree01/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/sptests/sprbtree01/init.c b/testsuites/sptests/sprbtree01/init.c
index 2dd08f530b..742bd896b4 100644
--- a/testsuites/sptests/sprbtree01/init.c
+++ b/testsuites/sptests/sprbtree01/init.c
@@ -33,6 +33,8 @@ typedef struct {
rtems_rbtree_node Node;
} test_node;
+static test_node node_array[100];
+
static rtems_rbtree_compare_result test_compare_function (
const rtems_rbtree_node *n1,
const rtems_rbtree_node *n2
@@ -225,7 +227,6 @@ rtems_task Init( rtems_task_argument ignored )
rtems_rbtree_control rbtree1;
rtems_rbtree_node *p;
test_node node1, node2;
- test_node node_array[100];
test_node search_node;
int id;
int i;