summaryrefslogtreecommitdiffstats
path: root/src/img3.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-10-02 17:02:33 +0200
committerGravatar Nikias Bassen2013-10-02 17:02:33 +0200
commitce2363cbb3361b7e34a0150a92d806573dfef9be (patch)
treefc00c7b674a3973d1e208e79b81b16c13fe1346f /src/img3.h
parent02a500231ff77dd7f1eb2e35fb29ee2aff287658 (diff)
downloadidevicerestore-ce2363cbb3361b7e34a0150a92d806573dfef9be.tar.gz
idevicerestore-ce2363cbb3361b7e34a0150a92d806573dfef9be.tar.bz2
img3: make buffers and sizes unsigned
Diffstat (limited to 'src/img3.h')
-rw-r--r--src/img3.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/img3.h b/src/img3.h
index 527e6eb..1132162 100644
--- a/src/img3.h
+++ b/src/img3.h
@@ -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