X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fbasic-test%2Fyaffs_osglue.c;h=995871397497861ec82c23ea2fce77a107a86564;hb=9dd7bc3106f6b5b677dd7ffc008518dfcd155726;hp=14963839b23a2180e8f4b49515ad4d155e7565f6;hpb=efe3b1808c66ecfecf16498eee78aeedc9809705;p=yaffs2.git diff --git a/direct/basic-test/yaffs_osglue.c b/direct/basic-test/yaffs_osglue.c index 1496383..9958713 100644 --- a/direct/basic-test/yaffs_osglue.c +++ b/direct/basic-test/yaffs_osglue.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -39,7 +39,7 @@ int yaffsfs_GetLastError(void) #ifdef CONFIG_YAFFS_USE_PTHREADS -#include +#include static pthread_mutex_t mutex1; @@ -55,7 +55,7 @@ void yaffsfs_Unlock(void) void yaffsfs_LockInit(void) { - pthread_mutex_init( &mutex, NULL); + pthread_mutex_init( &mutex1, NULL); } #else @@ -83,7 +83,7 @@ static int yaffs_kill_alloc = 0; static size_t total_malloced = 0; static size_t malloc_limit = 0 & 6000000; -void *yaffs_malloc(size_t size) +void *yaffsfs_malloc(size_t size) { void * this; if(yaffs_kill_alloc) @@ -97,7 +97,7 @@ void *yaffs_malloc(size_t size) return this; } -void yaffs_free(void *ptr) +void yaffsfs_free(void *ptr) { free(ptr); }