summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-08 22:06:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-08 22:06:02 +0000
commit8ebef93afdd21319d7d51fe801fae0203234afc4 (patch)
treeb5594cfaa0ded1bcd28eff8d98c0885b3ce92212 /gnu
parent6f4afcab3d3c515cae945f03946aff85f31cc975 (diff)
long vs time_t workarounds without changing the API; spotted by pval, ok fgsch
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/callback.c8
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;
}