From ce2363cbb3361b7e34a0150a92d806573dfef9be Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 2 Oct 2013 17:02:33 +0200 Subject: img3: make buffers and sizes unsigned --- src/img3.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/img3.h') 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 -- cgit v1.1-32-gdbae