summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-29 15:52:49 +0000
committerbde <bde@FreeBSD.org>1998-06-29 15:52:49 +0000
commitd1ade19b076d3f0330c8a6d04def69d6945a4942 (patch)
tree1071835d440992727eb8635d14cbc1bf475af6f1 /contrib
parent18a2201c574aa719ca9333b0820baf1b8a0fa7c0 (diff)
downloadFreeBSD-src-d1ade19b076d3f0330c8a6d04def69d6945a4942.zip
FreeBSD-src-d1ade19b076d3f0330c8a6d04def69d6945a4942.tar.gz
Don't assume that time_t is long.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/texinfo/makeinfo/makeinfo.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/contrib/texinfo/makeinfo/makeinfo.c b/contrib/texinfo/makeinfo/makeinfo.c
index 2ed9365..f30d366 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),
OpenPOWER on IntegriCloud