From b637a14f2d57990143b5990829f78b85974655c6 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sun, 20 Oct 2024 09:50:40 -0400 Subject: [PATCH] whoops; --- src/fne/network/influxdb/InfluxDB.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fne/network/influxdb/InfluxDB.h b/src/fne/network/influxdb/InfluxDB.h index 3868b208..91155ffa 100644 --- a/src/fne/network/influxdb/InfluxDB.h +++ b/src/fne/network/influxdb/InfluxDB.h @@ -189,7 +189,8 @@ namespace network return 1; } - if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int)) < 0) { + const int sockOptVal = 1; + if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &sockOptVal, sizeof(int)) < 0) { LogError(LOG_NET, "Failed to connect to InfluxDB server, err: %d", errno); closesocket(fd); return 1;