diff options
author | bde <bde@FreeBSD.org> | 1998-06-29 16:30:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-29 16:30:43 +0000 |
commit | 46d0d58de9c92492be53612122611c4f6abcc4df (patch) | |
tree | 622a789929826449ebdddce01b755b4acbc3111f | |
parent | d1ade19b076d3f0330c8a6d04def69d6945a4942 (diff) | |
download | FreeBSD-src-46d0d58de9c92492be53612122611c4f6abcc4df.zip FreeBSD-src-46d0d58de9c92492be53612122611c4f6abcc4df.tar.gz |
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.
-rw-r--r-- | contrib/gdb/gdb/callback.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/gdb/gdb/callback.c b/contrib/gdb/gdb/callback.c index d59ecda..c5224c6 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; } |