summaryrefslogtreecommitdiffstats
path: root/src/cmd/acme/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme/util.c')
-rw-r--r--src/cmd/acme/util.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/acme/util.c b/src/cmd/acme/util.c
index fd4d97ab..7675346a 100644
--- a/src/cmd/acme/util.c
+++ b/src/cmd/acme/util.c
@@ -415,11 +415,8 @@ emalloc(uint n)
void *p;
p = malloc(n);
- if(p == nil){
- fprint(2, "allocating %d from %lux: %r\n", n, getcallerpc(&n));
- *(int*)0=0;
+ if(p == nil)
error("malloc failed");
- }
setmalloctag(p, getcallerpc(&n));
memset(p, 0, n);
return p;
@@ -429,10 +426,8 @@ void*
erealloc(void *p, uint n)
{
p = realloc(p, n);
- if(p == nil){
- fprint(2, "reallocating %d: %r\n", n);
+ if(p == nil)
error("realloc failed");
- }
setmalloctag(p, getcallerpc(&n));
return p;
}