diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-05-24 19:49:44 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@redhat.com> | 2000-05-24 19:49:44 +0000 |
commit | e6dfde6f82dc1a477e8cbfad83548da8a31c1f2c (patch) | |
tree | 855635ab69f037f95b143c368272a9c909c52715 /libgloss | |
parent | 4b9f883e84172b0d36aec73c23c02dd7577949bd (diff) | |
download | newlib-e6dfde6f82dc1a477e8cbfad83548da8a31c1f2c.zip newlib-e6dfde6f82dc1a477e8cbfad83548da8a31c1f2c.tar.gz newlib-e6dfde6f82dc1a477e8cbfad83548da8a31c1f2c.tar.bz2 |
* mn10300/time.c (time): Set *tloc, since the sim doesn't.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/ChangeLog | 4 | ||||
-rw-r--r-- | libgloss/mn10300/time.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 2d4c17a..c5fadb8 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +Wed May 24 16:47:12 2000 Alexandre Oliva <aoliva@cygnus.com> + + * mn10300/time.c (time): Set *tloc, since the sim doesn't. + Mon Jan 31 18:45:26 2000 Donald Lindsay <dlindsay@cygnus.com> * mips/crt0.S: If compiled into a mips2 multilib, sets processor diff --git a/libgloss/mn10300/time.c b/libgloss/mn10300/time.c index 2df8d48..4528631 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; } |