Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/mn10300/time.c')
-rw-r--r--libgloss/mn10300/time.c6
1 files changed, 5 insertions, 1 deletions
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;
}