From e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 May 2026 23:56:29 -0300 Subject: fix issues and warnings when compiling with glibc < 2.32 (#57, #58) This also fixes some inconsistencies such as mixing both strerror and strerrordesc_np, and possible formatting issues. --- src/connections.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connections.cc') diff --git a/src/connections.cc b/src/connections.cc index f1d36fb..2aee24a 100644 --- a/src/connections.cc +++ b/src/connections.cc @@ -105,7 +105,7 @@ bool TConnection::SetLoginTimer(int Timeout){ SigEvent.sigev_notify_thread_id = this->ThreadID; if(timer_create(CLOCK_MONOTONIC, &SigEvent, &this->LoginTimer) == -1){ error("TConnection::SetLoginTimer: Failed to create timer: (%d) %s\n", - errno, strerrordesc_np(errno)); + errno, GetErrorDescription(errno)); return false; } @@ -113,7 +113,7 @@ bool TConnection::SetLoginTimer(int Timeout){ TimerSpec.it_value.tv_sec = Timeout; if(timer_settime(this->LoginTimer, 0, &TimerSpec, NULL) == -1){ error("TConnection::SetLoginTimer: Failed to start timer: (%d) %s\n", - errno, strerrordesc_np(errno)); + errno, GetErrorDescription(errno)); return false; } @@ -133,7 +133,7 @@ void TConnection::StopLoginTimer(void){ if(timer_delete(this->LoginTimer) == -1){ error("TConnection::StopLoginTimer: Failed to delete timer: (%d) %s\n", - errno, strerrordesc_np(errno)); + errno, GetErrorDescription(errno)); } this->LoginTimer = 0; -- cgit v1.2.3