diff options
-rw-r--r-- | gnu/usr.bin/binutils/gdb/callback.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/callback.c b/gnu/usr.bin/binutils/gdb/callback.c index 6e3c4519b41..f7fbac0af41 100644 --- a/gnu/usr.bin/binutils/gdb/callback.c +++ b/gnu/usr.bin/binutils/gdb/callback.c @@ -266,7 +266,13 @@ os_time (p, t) host_callback *p; long *t; { - return wrap (p, time (t)); + time_t tt; + int r; + + r = wrap (p, time (&tt)); + if (t) + *t = (long)tt; + return r; } |