diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-30 22:35:03 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-30 22:35:03 +0000 |
commit | dd5602f59b599177fb130512fc543f7efa951990 (patch) | |
tree | 93f50c0abbbc61dbea120afb6f497afe6b976fea /Src/mem.c | |
parent | fd240e09b05ca15aa1deef35733124b6852fe809 (diff) | |
download | zsh-dd5602f59b599177fb130512fc543f7efa951990.tar.gz zsh-dd5602f59b599177fb130512fc543f7efa951990.tar.xz zsh-dd5602f59b599177fb130512fc543f7efa951990.zip |
22474: use variable argument lists to improve error message handling
Diffstat (limited to 'Src/mem.c')
-rw-r--r-- | Src/mem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/mem.c b/Src/mem.c index bcdd1efe9..afc008cd7 100644 --- a/Src/mem.c +++ b/Src/mem.c @@ -321,7 +321,7 @@ mmap_heap_alloc(size_t *n) h = (Heap) mmap(NULL, *n, PROT_READ | PROT_WRITE, MMAP_FLAGS, -1, 0); if (h == ((Heap) -1)) { - zerr("fatal error: out of heap memory", NULL, 0); + zerr("fatal error: out of heap memory"); exit(1); } @@ -581,7 +581,7 @@ zalloc(size_t size) size = 1; queue_signals(); if (!(ptr = (void *) malloc(size))) { - zerr("fatal error: out of memory", NULL, 0); + zerr("fatal error: out of memory"); exit(1); } unqueue_signals(); @@ -599,7 +599,7 @@ zshcalloc(size_t size) size = 1; queue_signals(); if (!(ptr = (void *) malloc(size))) { - zerr("fatal error: out of memory", NULL, 0); + zerr("fatal error: out of memory"); exit(1); } unqueue_signals(); @@ -623,7 +623,7 @@ zrealloc(void *ptr, size_t size) if (size) { /* Do normal realloc */ if (!(ptr = (void *) realloc(ptr, size))) { - zerr("fatal error: out of memory", NULL, 0); + zerr("fatal error: out of memory"); exit(1); } unqueue_signals(); |