diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-06-29 15:52:49 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-06-29 15:52:49 +0000 |
commit | 39470616b13dec5170b58a0a173f85a7a93cd8b7 (patch) | |
tree | 4f2687eca4b5261fb36b584338643fb22b7955fa /contrib/texinfo/makeinfo | |
parent | eeae79cc349429eafafe4942450da21ce1041ce7 (diff) |
Don't assume that time_t is long.
Notes
Notes:
svn path=/head/; revision=37259
Diffstat (limited to 'contrib/texinfo/makeinfo')
-rw-r--r-- | contrib/texinfo/makeinfo/makeinfo.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/texinfo/makeinfo/makeinfo.c b/contrib/texinfo/makeinfo/makeinfo.c index 2ed93659dc24..f30d366cbd48 100644 --- a/contrib/texinfo/makeinfo/makeinfo.c +++ b/contrib/texinfo/makeinfo/makeinfo.c @@ -3918,12 +3918,6 @@ cm_dotless (arg, start, end) } } -#if defined (__osf__) -#define LOCALTIME_CAST(x) (time_t *)(x) -#else -#define LOCALTIME_CAST(x) (x) -#endif - void cm_today (arg) int arg; @@ -3933,8 +3927,8 @@ cm_today (arg) "August", "September", "October", "November", "December" }; if (arg == START) { - long timer = time (0); - struct tm *ts = localtime (LOCALTIME_CAST (&timer)); + time_t timer = time (0); + struct tm *ts = localtime (&timer); add_word_args ("%d %s %d", (ts -> tm_mday), |