From 734a96bd1691395765ceae0bf9afa86bda8ab07b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 7 Mar 2008 10:45:59 -0500 Subject: acme: sync against Plan 9, remove -$ option --- src/cmd/acme/util.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/cmd/acme/util.c') 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; } -- cgit v1.2.3