time: resynch library with API change for time()
authorAlan Cox <alan@linux.intel.com>
Fri, 26 Dec 2014 20:16:01 +0000 (20:16 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 26 Dec 2014 20:16:01 +0000 (20:16 +0000)
Better to do this before we have too many dependancies than to delay it
until we can't change it.

Library/include/syscalls.h
Library/libs/time.c

index e551490..3939659 100644 (file)
@@ -117,7 +117,7 @@ extern int _getdirent(int fd, void *buf, int len);
 extern int _stat(const char *path, struct _uzistat *s);
 extern int _fstat(int fd, struct _uzistat *s);
 extern int _getfsys(int dev, struct _uzifilesys *fs);
-extern int _time(time_t *t);
+extern int _time(time_t *t, uint16_t clock);
 extern int _stime(const time_t *t);
 extern int _times(struct tms *t);
 extern int _utime(const char *file, time_t *buf);
index 096d08f..c394c4b 100644 (file)
@@ -10,9 +10,9 @@ time_t time(time_t *t)
 {
   time_t tmp;
   if (t) {
-    _time(t);
+    _time(t, 0);
     return *t;
   }
-  _time(&tmp);
+  _time(&tmp, 0);
   return tmp;
 }