[Yaffs] [PATCH 11/20] Use UNIX time instead of seconds since…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Xiangfu Liu
Date:  
To: yaffs
CC: sebastien
Old-Topics: [Yaffs] [PATCH 10/20] Changed seek mechanic.
New-Topics: [Yaffs] [PATCH 12/20] Flush during close (similar to yaffs_close()).
Subject: [Yaffs] [PATCH 11/20] Use UNIX time instead of seconds since boot.
From: Sebastian Huber <>

---
 rtems/rtems_yaffs_os_glue.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/rtems/rtems_yaffs_os_glue.c b/rtems/rtems_yaffs_os_glue.c
index ff57d1d..467d8b1 100644
--- a/rtems/rtems_yaffs_os_glue.c
+++ b/rtems/rtems_yaffs_os_glue.c
@@ -20,8 +20,7 @@
*/

#include <stdlib.h>
-
-#include <rtems.h>
+#include <time.h>

#include "yaffs_trace.h"
#include "yaffs_osglue.h"
@@ -42,5 +41,5 @@ void yaffsfs_free(void *ptr)

 u32 yaffsfs_CurrentTime(void)
 {
-    return rtems_clock_get_ticks_since_boot();
+    return time(NULL);
 }
-- 
1.7.4.1