From e6dfde6f82dc1a477e8cbfad83548da8a31c1f2c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 24 May 2000 19:49:44 +0000 Subject: * mn10300/time.c (time): Set *tloc, since the sim doesn't. --- libgloss/mn10300/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libgloss/mn10300/time.c') diff --git a/libgloss/mn10300/time.c b/libgloss/mn10300/time.c index 2df8d48d2..452863148 100644 --- a/libgloss/mn10300/time.c +++ b/libgloss/mn10300/time.c @@ -7,5 +7,9 @@ time_t time (time_t *tloc) { - return TRAP0 (SYS_time, tloc, 0, 0); + time_t res; + res = TRAP0 (SYS_time, 0, 0, 0); + if (tloc) + *tloc = res; + return res; } -- cgit v1.2.3