Fix compiler warnings.

This commit is contained in:
Thomas Geymayer 2014-09-22 18:24:13 +02:00
parent b3c7d63809
commit deceee8997

View File

@ -88,7 +88,7 @@ voidpf ZCALLBACK fopen_mem_func (opaque, filename, mode)
* size of an int and therefore may need addressing for 64bit * size of an int and therefore may need addressing for 64bit
* architectures * architectures
*/ */
if (sscanf(filename,"%p+%x",&mem->base,&mem->size)!=2) if (sscanf(filename,"%p+%lx",&mem->base,&mem->size)!=2)
return NULL; return NULL;
if (mode & ZLIB_FILEFUNC_MODE_CREATE) if (mode & ZLIB_FILEFUNC_MODE_CREATE)
@ -202,7 +202,7 @@ int ZCALLBACK ferror_mem_func (opaque, stream)
voidpf opaque; voidpf opaque;
voidpf stream; voidpf stream;
{ {
ourmemory_t *mem = (ourmemory_t *)stream; // ourmemory_t *mem = (ourmemory_t *)stream;
/* We never return errors */ /* We never return errors */
return 0; return 0;
} }