1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Disable curl debugging with opt protocol since it spews to stderr.

This commit is contained in:
Con Kolivas 2011-08-26 13:32:41 +10:00
parent 57c93d7e20
commit 437d6f05cc

2
util.c
View File

@ -319,8 +319,10 @@ json_t *json_rpc_call(CURL *curl, const char *url,
}
curl_easy_setopt(curl, CURLOPT_TIMEOUT, timeout);
#if 0 /* Disable curl debugging since it spews to stderr */
if (opt_protocol)
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
#endif
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_ENCODING, "");