From 3d3a3a2f3ac8c0797c86e8144e32f0b0ad77d7b6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 15 Feb 2012 21:42:12 +1100 Subject: [PATCH] Fix unused warnings on win32. --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 1ae89250..1d037bf2 100644 --- a/util.c +++ b/util.c @@ -186,12 +186,12 @@ out: int json_rpc_call_sockopt_cb(void __maybe_unused *userdata, curl_socket_t fd, curlsocktype __maybe_unused purpose) { - int keepalive = 1; - int tcp_keepcnt = 5; int tcp_keepidle = 120; int tcp_keepintvl = 120; #ifndef WIN32 + int keepalive = 1; + int tcp_keepcnt = 5; if (unlikely(setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &keepalive, sizeof(keepalive)))) return 1;