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:
@@ -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 */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user