mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:43:03 +01:00
Define clock correctly, rather than casting it.
Pointed out by Claudio.
This commit is contained in:
parent
a7eb3cd6ad
commit
4cbf0f0926
@ -761,8 +761,8 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status,
|
|||||||
|
|
||||||
attachment->att_charset = options.dpb_interp;
|
attachment->att_charset = options.dpb_interp;
|
||||||
|
|
||||||
SLONG clock = time(NULL);
|
time_t clock = time(NULL);
|
||||||
struct tm times = *localtime(reinterpret_cast<const time_t*>(&clock));
|
struct tm times = *localtime(&clock);
|
||||||
isc_encode_timestamp(×, &attachment->att_timestamp);
|
isc_encode_timestamp(×, &attachment->att_timestamp);
|
||||||
|
|
||||||
if (options.dpb_lc_messages) {
|
if (options.dpb_lc_messages) {
|
||||||
@ -1929,8 +1929,8 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
|
|||||||
|
|
||||||
attachment->att_charset = options.dpb_interp;
|
attachment->att_charset = options.dpb_interp;
|
||||||
|
|
||||||
SLONG clock = time(NULL);
|
time_t clock = time(NULL);
|
||||||
struct tm times = *localtime(reinterpret_cast<const time_t*>(&clock));
|
struct tm times = *localtime(&clock);
|
||||||
isc_encode_timestamp(×, &attachment->att_timestamp);
|
isc_encode_timestamp(×, &attachment->att_timestamp);
|
||||||
|
|
||||||
if (options.dpb_lc_messages)
|
if (options.dpb_lc_messages)
|
||||||
|
Loading…
Reference in New Issue
Block a user