Browse Source

json_rpc_call_completed: Silence incorrect type cast warning

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

+ 1 - 1
util.c

@@ -417,7 +417,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)
 {
 	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");
 		if (out_priv)
 			*(void**)out_priv = NULL;