Browse Source

util correct applog typing

Kano 12 years ago
parent
commit
2ce2f8d8eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -453,7 +453,7 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 		applog(LOG_INFO, "JSON decode failed(%d): %s", err.line, err.text);
 		applog(LOG_INFO, "JSON decode failed(%d): %s", err.line, err.text);
 
 
 		if (opt_protocol)
 		if (opt_protocol)
-			applog(LOG_DEBUG, "JSON protocol response:\n%s", all_data.buf);
+			applog(LOG_DEBUG, "JSON protocol response:\n%s", (char *)(all_data.buf));
 
 
 		goto err_out;
 		goto err_out;
 	}
 	}