diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-08 22:06:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-08 22:06:02 +0000 |
commit | 8ebef93afdd21319d7d51fe801fae0203234afc4 (patch) | |
tree | b5594cfaa0ded1bcd28eff8d98c0885b3ce92212 /gnu/usr.bin | |
parent | 6f4afcab3d3c515cae945f03946aff85f31cc975 (diff) |
long vs time_t workarounds without changing the API; spotted by pval, ok fgsch
Diffstat (limited to 'gnu/usr.bin')
-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; } |