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/redir.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 'src/redir.c')
-rw-r--r-- | src/redir.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/redir.c b/src/redir.c index 9bebcb6..e7bcd50 100644 --- a/src/redir.c +++ b/src/redir.c @@ -157,7 +157,7 @@ redirect(union node *redir, int flags) if (i != EBADF) { const char *m = strerror(i); close(newfd); - error("%d: %s", fd, m); + sh_error("%d: %s", fd, m); /* NOTREACHED */ } } else { @@ -238,9 +238,9 @@ openredirect(union node *redir) return f; ecreate: - error("cannot create %s: %s", fname, errmsg(errno, E_CREAT)); + sh_error("cannot create %s: %s", fname, errmsg(errno, E_CREAT)); eopen: - error("cannot open %s: %s", fname, errmsg(errno, E_OPEN)); + sh_error("cannot open %s: %s", fname, errmsg(errno, E_OPEN)); } @@ -294,7 +294,7 @@ openhere(union node *redir) size_t len = 0; if (pipe(pip) < 0) - error("Pipe call failed"); + sh_error("Pipe call failed"); if (redir->type == NHERE) { len = strlen(redir->nhere.doc->narg.text); if (len <= PIPESIZE) { @@ -401,7 +401,7 @@ copyfd(int from, int to) if (errno2 == EMFILE) return EMPTY; else - error("%d: %s", from, strerror(errno2)); + sh_error("%d: %s", from, strerror(errno2)); } return newfd; } |