From 4cbf0f09262e0c57a84cc3b22e4b59deb31b4131 Mon Sep 17 00:00:00 2001 From: stryqx Date: Tue, 7 Oct 2003 11:02:25 +0000 Subject: [PATCH] Define clock correctly, rather than casting it. Pointed out by Claudio. --- src/jrd/jrd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jrd/jrd.cpp b/src/jrd/jrd.cpp index 0deb0023e2..67078cb857 100644 --- a/src/jrd/jrd.cpp +++ b/src/jrd/jrd.cpp @@ -761,8 +761,8 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status, attachment->att_charset = options.dpb_interp; - SLONG clock = time(NULL); - struct tm times = *localtime(reinterpret_cast(&clock)); + time_t clock = time(NULL); + struct tm times = *localtime(&clock); isc_encode_timestamp(×, &attachment->att_timestamp); if (options.dpb_lc_messages) { @@ -1929,8 +1929,8 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status, attachment->att_charset = options.dpb_interp; - SLONG clock = time(NULL); - struct tm times = *localtime(reinterpret_cast(&clock)); + time_t clock = time(NULL); + struct tm times = *localtime(&clock); isc_encode_timestamp(×, &attachment->att_timestamp); if (options.dpb_lc_messages)