summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/pq-connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index af74fac..d2c02b2 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -79,8 +79,8 @@ PQ::Connection::bulkUpdateStyle() const
void
PQ::Connection::ping() const
{
- // NOLINTNEXTLINE(hicpp-signed-bitwise)
struct pollfd fd {
+ // NOLINTNEXTLINE(hicpp-signed-bitwise)
PQsocket(conn), POLLRDHUP | POLLERR | POLLHUP | POLLNVAL, 0
};
if (PQstatus(conn) != CONNECTION_OK || poll(&fd, 1, 0)) {