diff options
author | Martin Szulecki | 2009-04-24 17:02:16 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-04-27 19:35:48 +0200 |
commit | 66614dd5c574559ca0bb92f9250e26805f8e626a (patch) | |
tree | c595a30b418e5d045e5619c6b6e90e19a0922210 | |
parent | ae1478e2761273f18a7736427c8a88782015bd03 (diff) | |
download | libplist-66614dd5c574559ca0bb92f9250e26805f8e626a.tar.gz libplist-66614dd5c574559ca0bb92f9250e26805f8e626a.tar.bz2 |
Fix compiler pointer assignment warnings
-rw-r--r-- | src/bplist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bplist.c b/src/bplist.c index 1ab3ab8..2a82b9f 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -413,7 +413,7 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist) return; //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]; 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) return; //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++) { char *obj = NULL; 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); } |