Commit 66614dd5 authored by Martin Szulecki's avatar Martin Szulecki Committed by Jonathan Beck

Fix compiler pointer assignment warnings

parent ae1478e2
...@@ -413,7 +413,7 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist) ...@@ -413,7 +413,7 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
return; return;
//now parse trailer //now parse trailer
trailer = plist_bin + (length - BPLIST_TRL_SIZE); trailer = (char*)(plist_bin + (length - BPLIST_TRL_SIZE));
offset_size = trailer[BPLIST_TRL_OFFSIZE_IDX]; offset_size = trailer[BPLIST_TRL_OFFSIZE_IDX];
dict_param_size = trailer[BPLIST_TRL_PARMSIZE_IDX]; dict_param_size = trailer[BPLIST_TRL_PARMSIZE_IDX];
...@@ -431,12 +431,12 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist) ...@@ -431,12 +431,12 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
return; return;
//parse serialized nodes //parse serialized nodes
offset_table = plist_bin + offset_table_index; offset_table = (char*)(plist_bin + offset_table_index);
for (i = 0; i < num_objects; i++) { for (i = 0; i < num_objects; i++) {
char *obj = NULL; char *obj = NULL;
current_offset = UINT_TO_HOST(offset_table + i * offset_size, offset_size); current_offset = UINT_TO_HOST(offset_table + i * offset_size, offset_size);
obj = plist_bin + current_offset; obj = (char*)(plist_bin + current_offset);
nodeslist[i] = parse_bin_node(obj, dict_param_size, &obj); nodeslist[i] = parse_bin_node(obj, dict_param_size, &obj);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment