From 82890f2bb9d9c5fe5b1789c3d60f5d15d610dbd2 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 29 Jun 1998 16:30:43 +0000 Subject: [PATCH] Don't assume that time_t is long. Don't assume that time_t's can be represented by ints. Keep assuming that time_t's can be represented by longs. --- contrib/gdb/gdb/callback.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/gdb/gdb/callback.c b/contrib/gdb/gdb/callback.c index d59ecdabd7a1..c5224c6f4299 100644 --- a/contrib/gdb/gdb/callback.c +++ b/contrib/gdb/gdb/callback.c @@ -248,7 +248,12 @@ os_time (p, t) host_callback *p; long *t; { - return wrap (p, time (t)); + time_t now; + + wrap (p, (int) time (&now)); + if (t != NULL) + *t = (long) now; + return (long) now; }