From 6a71922d8e8060b68e2719b33aa7c5b1aee7d816 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 26 Dec 2014 20:16:01 +0000 Subject: [PATCH] time: resynch library with API change for time() Better to do this before we have too many dependancies than to delay it until we can't change it. --- Library/include/syscalls.h | 2 +- Library/libs/time.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index e5514908..3939659b 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -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); diff --git a/Library/libs/time.c b/Library/libs/time.c index 096d08fc..c394c4b7 100644 --- a/Library/libs/time.c +++ b/Library/libs/time.c @@ -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; } -- 2.34.1