diff options
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/mm_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/mm/mm_test.c b/nuttx/mm/mm_test.c index 4e414d848..48f380221 100644 --- a/nuttx/mm/mm_test.c +++ b/nuttx/mm/mm_test.c @@ -1,7 +1,7 @@ /************************************************************************ * mm/mm_test.c * - * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -379,7 +379,7 @@ static void do_memaligns(void **mem, const int *size, const int *align, const in } } -static do_frees(void **mem, const int *size, const int *rand, int n) +static void do_frees(void **mem, const int *size, const int *rand, int n) { int sval; int i; @@ -387,7 +387,7 @@ static do_frees(void **mem, const int *size, const int *rand, int n) for (i = 0; i < n; i++) { - j = random2[i]; + j = rand[i]; printf("(%d)Releasing memory at %p (size=%d bytes)\n", i, mem[j], size[j]); mm_free(mem[j]); |