You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Fix missing cast.
This was a problem in testing when -Wconversion was enabled and TCP_KEEPIDLE was defined.
This commit is contained in:
@@ -632,7 +632,7 @@ tlsClientOpen(TlsClient *this)
|
||||
setsockopt(this->socket, SOL_SOCKET, TCP_KEEPINTVL, &socketValue, sizeof(int)) == -1, ProtocolError,
|
||||
"unable set SO_KEEPINTVL");
|
||||
|
||||
socketValue = this->timeout / socketValue;
|
||||
socketValue = (int)this->timeout / socketValue;
|
||||
|
||||
THROW_ON_SYS_ERROR(
|
||||
setsockopt(this->socket, SOL_SOCKET, TCP_KEEPCNT, &socketValue, sizeof(int)) == -1, ProtocolError,
|
||||
|
||||
Reference in New Issue
Block a user