From 1edd64c62f703172d3bcb638631518f30bfff2d9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 1 Oct 2016 13:46:24 -0500 Subject: Fix FTBFS --- servers/admin_sys_ctl_server_lin/src/admin_sys_ctl.cpp | 2 +- servers/auth_server_lin/src/auth_conn.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'servers') diff --git a/servers/admin_sys_ctl_server_lin/src/admin_sys_ctl.cpp b/servers/admin_sys_ctl_server_lin/src/admin_sys_ctl.cpp index 2746467..a2cd088 100644 --- a/servers/admin_sys_ctl_server_lin/src/admin_sys_ctl.cpp +++ b/servers/admin_sys_ctl_server_lin/src/admin_sys_ctl.cpp @@ -299,7 +299,7 @@ void SysCtlSocket::commandLoop() { if (databaseActivityCursor.next()) { TQSqlRecord *buffer = databaseActivityCursor.primeUpdate(); if (terminationOffset > -2) { - buffer->setValue("terminate", terminationTime.toTime_t()); + buffer->setValue("terminate", (TQ_ULLONG)terminationTime.toTime_t()); } else { buffer->setValue("terminate", 0); diff --git a/servers/auth_server_lin/src/auth_conn.cpp b/servers/auth_server_lin/src/auth_conn.cpp index ce1e752..c5f8fa7 100644 --- a/servers/auth_server_lin/src/auth_conn.cpp +++ b/servers/auth_server_lin/src/auth_conn.cpp @@ -383,7 +383,7 @@ void AuthSocket::updateStatistics(int eventType) { } TQString userID = m_authenticatedUserName + "@" + m_authenticatedRealmName; TQSqlRecord *buffer = m_databaseStatisticsCursor->primeInsert(); - buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); + buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t()); buffer->setValue("eventtypeid", eventType); buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("stationid", m_stationID); @@ -567,7 +567,7 @@ void AuthSocket::commandLoop() { buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("username", m_authenticatedUserName); buffer->setValue("realmname", m_authenticatedRealmName); - buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t()); + buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t()); buffer->setValue("serviceid", m_serviceID); buffer->setValue("terminate", 0); m_databaseActivityCursor->insert(); @@ -658,7 +658,7 @@ void AuthSocket::commandLoop() { buffer->setValue("arbiter", m_localMachineFQDN); buffer->setValue("username", m_authenticatedUserName); buffer->setValue("realmname", m_authenticatedRealmName); - buffer->setValue("logontime", TQDateTime::currentDateTime().toTime_t()); + buffer->setValue("logontime", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t()); buffer->setValue("serviceid", m_serviceID); buffer->setValue("terminate", 0); m_databaseActivityCursor->insert(); @@ -804,7 +804,7 @@ AuthServer::AuthServer(TQObject* parent) : // Update statistics TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database); TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert(); - buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); + buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t()); buffer->setValue("eventtypeid", STATISTICS_SERVER_START_EVENT); databaseStatisticsCursor.insert(); @@ -826,7 +826,7 @@ AuthServer::~AuthServer() { // Update statistics TQSqlCursor databaseStatisticsCursor("statistics", TRUE, m_database); TQSqlRecord *buffer = databaseStatisticsCursor.primeInsert(); - buffer->setValue("timestamp", TQDateTime::currentDateTime().toTime_t()); + buffer->setValue("timestamp", (TQ_ULLONG)TQDateTime::currentDateTime().toTime_t()); buffer->setValue("eventtypeid", STATISTICS_SERVER_STOP_EVENT); databaseStatisticsCursor.insert(); -- cgit v1.2.1