@@ -1216,7 +1216,7 @@ int main(int argc, char **argv)
12161216 size_t flen = 0 ;
12171217 zbuf = buf_from_file (extmeta , & flen );
12181218 if (zbuf && flen ) {
1219- meta = plist_new_data (( uint8_t * ) zbuf , flen );
1219+ meta = plist_new_data (zbuf , flen );
12201220 plist_from_memory (zbuf , flen , & meta_dict , NULL );
12211221 free (zbuf );
12221222 }
@@ -1231,7 +1231,7 @@ int main(int argc, char **argv)
12311231 if (!meta && !meta_dict ) {
12321232 /* extract iTunesMetadata.plist from package */
12331233 if (zip_get_contents (zf , ITUNES_METADATA_PLIST_FILENAME , 0 , & zbuf , & len ) == 0 ) {
1234- meta = plist_new_data (( uint8_t * ) zbuf , len );
1234+ meta = plist_new_data (zbuf , len );
12351235 plist_from_memory (zbuf , len , & meta_dict , NULL );
12361236 }
12371237 if (!meta_dict ) {
@@ -1304,7 +1304,7 @@ int main(int argc, char **argv)
13041304 size_t flen = 0 ;
13051305 zbuf = buf_from_file (extsinf , & flen );
13061306 if (zbuf && flen ) {
1307- sinf = plist_new_data (( uint8_t * ) zbuf , flen );
1307+ sinf = plist_new_data (zbuf , flen );
13081308 free (zbuf );
13091309 } else {
13101310 fprintf (stderr , "WARNING: could not load external SINF %s!\n" , extsinf );
@@ -1324,7 +1324,7 @@ int main(int argc, char **argv)
13241324 zbuf = NULL ;
13251325 len = 0 ;
13261326 if (zip_get_contents (zf , sinfname , 0 , & zbuf , & len ) == 0 ) {
1327- sinf = plist_new_data (( uint8_t * ) zbuf , len );
1327+ sinf = plist_new_data (zbuf , len );
13281328 } else {
13291329 fprintf (stderr , "WARNING: could not locate %s in archive!\n" , sinfname );
13301330 }
0 commit comments