imv-swid: Cast json object strings when using it as chunk pointer

While the string is actually const, we don't have a const chunk to handle such
strings properly in chunks. Fixes compiler warnings.
This commit is contained in:
Martin Willi
2014-06-03 12:23:57 +02:00
parent 62dd8c3082
commit b4c51061c3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -562,7 +562,7 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
json_object_put(jresponse);
break;
}
target = json_object_get_string(jvalue);
target = (char*)json_object_get_string(jvalue);
DBG1(DBG_IMV, " %s", target);
/* Separate target into tag_creator and unique_sw_id */
+1 -1
View File
@@ -58,7 +58,7 @@ METHOD(imv_swid_rest_t, post, status_t,
{
return FAILED;
}
data = chunk_from_str(json_object_to_json_string(jrequest));
data = chunk_from_str((char*)json_object_to_json_string(jrequest));
status = lib->fetcher->fetch(lib->fetcher, uri, &response,
FETCH_TIMEOUT, this->timeout,