mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-18 04:10:57 +01:00
fixed aix portability problems
This commit is contained in:
@@ -25,11 +25,14 @@
|
||||
|
||||
|
||||
void *ucmalloc(size_t s) {
|
||||
if (s == 0)
|
||||
return NULL;
|
||||
|
||||
size_t size = s * sizeof(unsigned char);
|
||||
void *value = malloc (size);
|
||||
|
||||
if (value == NULL) {
|
||||
err(errno, "Cannot allocate memory");
|
||||
err(errno, "Cannot allocate %d bytes of memory", (int)s);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user