Commit 2ce2f8d8ebe28a3a879cc8aab91952a42fe64d3e

Kano 2013-05-02T23:36:04

util correct applog typing

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index 39f003c..31acc14 100644
--- a/util.c
+++ b/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);
 
 		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;
 	}