gmio_core: fix GCC compilation errors

This commit is contained in:
Hugues Delorme 2017-01-06 18:29:46 +01:00
parent 579989484c
commit bf8e01d237
2 changed files with 6 additions and 6 deletions

View File

@ -161,7 +161,7 @@ size_t gmio_zip_read_local_file_header(
int *ptr_error)
{
uint8_t buff[GMIO_ZIP_SIZE_LOCAL_FILE_HEADER];
uint8_t* buffit = buff;
const uint8_t* buffit = buff;
const size_t read_len = gmio_stream_read_bytes(stream, buff, sizeof(buff));
if (!gmio_zip_read_checkhelper(stream, read_len, sizeof(buff)))
@ -251,7 +251,7 @@ size_t gmio_zip_read_central_directory_header(
int *ptr_error)
{
uint8_t buff[GMIO_ZIP_SIZE_CENTRAL_DIRECTORY_HEADER];
uint8_t* buffit = buff;
const uint8_t* buffit = buff;
const size_t read_len = gmio_stream_read_bytes(stream, buff, sizeof(buff));
if (!gmio_zip_read_checkhelper(stream, read_len, sizeof(buff)))
@ -311,7 +311,7 @@ size_t gmio_zip_read_end_of_central_directory_record(
int *ptr_error)
{
uint8_t buff[GMIO_ZIP_SIZE_END_OF_CENTRAL_DIRECTORY_RECORD];
uint8_t* buffit = buff;
const uint8_t* buffit = buff;
const size_t read_len = gmio_stream_read_bytes(stream, buff, sizeof(buff));
if (!gmio_zip_read_checkhelper(stream, read_len, sizeof(buff)))
@ -404,7 +404,7 @@ size_t gmio_zip_read_data_descriptor(
int* ptr_error)
{
uint8_t buff[GMIO_ZIP_SIZE_DATA_DESCRIPTOR];
uint8_t* buffit = buff;
const uint8_t* buffit = buff;
const size_t read_len = gmio_stream_read_bytes(stream, buff, sizeof(buff));
if (!gmio_zip_read_checkhelper(stream, read_len, sizeof(buff)))
@ -427,7 +427,7 @@ size_t gmio_zip64_read_data_descriptor(
{
#ifdef GMIO_HAVE_INT64_TYPE
uint8_t buff[GMIO_ZIP64_SIZE_DATA_DESCRIPTOR];
uint8_t* buffit = buff;
const uint8_t* buffit = buff;
const size_t read_len = gmio_stream_read_bytes(stream, buff, sizeof(buff));
if (!gmio_zip_read_checkhelper(stream, read_len, sizeof(buff)))

View File

@ -246,7 +246,7 @@ struct gmio_zip_write_result {
size_t written_len;
};
enum { GMIO_ZIP_UTILS_ERROR_TAG = 0xAA000000 };
enum { GMIO_ZIP_UTILS_ERROR_TAG = 0x00AA0000 };
enum gmio_zip_utils_error {
GMIO_ZIP_UTILS_ERROR_BAD_MAGIC = GMIO_ZIP_UTILS_ERROR_TAG + 0x01
};