1
0
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:
David Steele
2020-03-12 10:48:40 -04:00
parent d6ef6c57c3
commit e9c1569d8e
+1 -1
View File
@@ -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,