X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Fbasic-test%2Fyaffs_osglue.c;h=885fb8090a600bfbb56384ea59cafd225aa18c2e;hb=1a17e3ad0a2adbeaae6855696a16789caf4f8418;hp=6e8870b1780dc52aa669ef54cffe8b66e8783ccf;hpb=16df96a0d52168ffd252cb5547df303768e3519f;p=yaffs2.git diff --git a/direct/basic-test/yaffs_osglue.c b/direct/basic-test/yaffs_osglue.c index 6e8870b..885fb80 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 @@ -75,7 +75,7 @@ void yaffsfs_LockInit(void) u32 yaffsfs_CurrentTime(void) { - return 0; + return time(NULL); } @@ -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); }