diff options
author | herbert <herbert@gondor.apana.org.au> | 2005-03-02 19:46:59 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2005-09-26 18:33:04 +1000 |
commit | dc73119e1d42e969ba7081a1e15dbab7811721c6 (patch) | |
tree | d24abae8acaf535f324bc5c415792312df02b0fc /src/memalloc.c | |
parent | Normalise input in likely/unlikely macros. (diff) | |
download | dash-dc73119e1d42e969ba7081a1e15dbab7811721c6.tar.gz dash-dc73119e1d42e969ba7081a1e15dbab7811721c6.zip |
Renamed error to sh_error.
Diffstat (limited to '')
-rw-r--r-- | src/memalloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/memalloc.c b/src/memalloc.c index 03ad4f7..44d94ad 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -66,7 +66,7 @@ ckmalloc(size_t nbytes) p = malloc(nbytes); if (p == NULL) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -80,7 +80,7 @@ ckrealloc(pointer p, size_t nbytes) { p = realloc(p, nbytes); if (p == NULL) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -94,7 +94,7 @@ savestr(const char *s) { char *p = strdup(s); if (!p) - error("Out of space"); + sh_error("Out of space"); return p; } @@ -141,7 +141,7 @@ stalloc(size_t nbytes) blocksize = MINSIZE; len = sizeof(struct stack_block) - MINSIZE + blocksize; if (len < blocksize) - error("Out of space"); + sh_error("Out of space"); INTOFF; sp = ckmalloc(len); sp->prev = stackp; @@ -220,7 +220,7 @@ growstackblock(void) newlen = stacknleft * 2; if (newlen < stacknleft) - error("Out of space"); + sh_error("Out of space"); if (newlen < 128) newlen += 128; |