diff options
author | Nikias Bassen | 2013-10-02 17:02:33 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-02 17:02:33 +0200 |
commit | ce2363cbb3361b7e34a0150a92d806573dfef9be (patch) | |
tree | fc00c7b674a3973d1e208e79b81b16c13fe1346f /src/img3.h | |
parent | 02a500231ff77dd7f1eb2e35fb29ee2aff287658 (diff) | |
download | idevicerestore-ce2363cbb3361b7e34a0150a92d806573dfef9be.tar.gz idevicerestore-ce2363cbb3361b7e34a0150a92d806573dfef9be.tar.bz2 |
img3: make buffers and sizes unsigned
Diffstat (limited to 'src/img3.h')
-rw-r--r-- | src/img3.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -72,7 +72,7 @@ typedef struct { } img3_element; typedef struct { - char* data; + unsigned char* data; img3_header* header; int num_elements; img3_element* elements[16]; @@ -96,11 +96,11 @@ typedef struct { } img3_file; void img3_free(img3_file* image); -img3_element* img3_parse_element(char* data); +img3_element* img3_parse_element(unsigned char* data); void img3_free_element(img3_element* element); -img3_file* img3_parse_file(char* data, int size); -int img3_get_data(img3_file* image, char** pdata, int* psize); -int img3_replace_signature(img3_file* image, char* signature); +img3_file* img3_parse_file(unsigned char* data, unsigned int size); +int img3_get_data(img3_file* image, unsigned char** pdata, unsigned int* psize); +int img3_replace_signature(img3_file* image, unsigned char* signature); #ifdef __cplusplus |