Changed error code of libisofs/util.h from -1 to ISO_OUT_OF_MEM
This commit is contained in:
parent
d932bfcdea
commit
062e5f0bf0
@ -544,7 +544,7 @@ void *iso_alloc_mem(size_t size, size_t count, int flag);
|
|||||||
#define LIBISO_ALLOC_MEM(pt, typ, count) { \
|
#define LIBISO_ALLOC_MEM(pt, typ, count) { \
|
||||||
pt= (typ *) iso_alloc_mem(sizeof(typ), (size_t) (count), 0); \
|
pt= (typ *) iso_alloc_mem(sizeof(typ), (size_t) (count), 0); \
|
||||||
if(pt == NULL) { \
|
if(pt == NULL) { \
|
||||||
ret= -1; goto ex; \
|
ret= ISO_OUT_OF_MEM; goto ex; \
|
||||||
} }
|
} }
|
||||||
|
|
||||||
#define LIBISO_FREE_MEM(pt) { \
|
#define LIBISO_FREE_MEM(pt) { \
|
||||||
|
Loading…
Reference in New Issue
Block a user