Browse Source

Merge commit 'f94f3c9' into bfgminer

Luke Dashjr 12 years ago
parent
commit
23a0d7e046
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -503,7 +503,7 @@ void json_rpc_call_async(CURL *curl, const char *url,
 json_t *json_rpc_call_completed(CURL *curl, int rc, bool probe, int *rolltime, void *out_priv)
 json_t *json_rpc_call_completed(CURL *curl, int rc, bool probe, int *rolltime, void *out_priv)
 {
 {
 	struct json_rpc_call_state *state;
 	struct json_rpc_call_state *state;
-	if (curl_easy_getinfo(curl, CURLINFO_PRIVATE, &state) != CURLE_OK) {
+	if (curl_easy_getinfo(curl, CURLINFO_PRIVATE, (void*)&state) != CURLE_OK) {
 		applog(LOG_ERR, "Failed to get private curl data");
 		applog(LOG_ERR, "Failed to get private curl data");
 		if (out_priv)
 		if (out_priv)
 			*(void**)out_priv = NULL;
 			*(void**)out_priv = NULL;