if((p = malloc(size)) == NULL) {
fprintf(stderr, "%s: cannot allocate memory\n", tag);
- exit(-1);
+ exit(1);
}
return memset(p, 0, size);
}
if((p = calloc(nmemb, size)) == NULL) {
fprintf(stderr, "%s: cannot allocate memory\n", tag);
- exit(-1);
+ exit(1);
}
return p;
}