diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-10-01 13:46:24 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-10-01 13:46:29 -0500 |
| commit | 1edd64c62f703172d3bcb638631518f30bfff2d9 (patch) | |
| tree | 77c32bfb5c2c3facd5792369727080fc40301cf8 /servers/auth_server_lin/src/auth_conn.cpp | |
| parent | e4fcc7fd8faab801c98d972fe305aeed9b9d7790 (diff) | |
| download | ulab-1edd64c62f703172d3bcb638631518f30bfff2d9.tar.gz ulab-1edd64c62f703172d3bcb638631518f30bfff2d9.zip | |
Fix FTBFS
Diffstat (limited to 'servers/auth_server_lin/src/auth_conn.cpp')
| -rw-r--r-- | servers/auth_server_lin/src/auth_conn.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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(); |
