summary refs log tree commit diff
path: root/src/expand.c
diff options
context:
space:
mode:
authorherbert <herbert@gondor.apana.org.au>2005-03-02 19:46:59 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2005-09-26 18:33:04 +1000
commitdc73119e1d42e969ba7081a1e15dbab7811721c6 (patch)
treed24abae8acaf535f324bc5c415792312df02b0fc /src/expand.c
parentNormalise input in likely/unlikely macros. (diff)
downloaddash-dc73119e1d42e969ba7081a1e15dbab7811721c6.tar.gz
dash-dc73119e1d42e969ba7081a1e15dbab7811721c6.zip
Renamed error to sh_error.
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expand.c b/src/expand.c
index 1debde9..bc0de60 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -511,7 +511,7 @@ expari(int quotes)
 			p--;
 #ifdef DEBUG
 			if (p < start) {
-				error("missing CTLARI (shouldn't happen)");
+				sh_error("missing CTLARI (shouldn't happen)");
 			}
 #endif
 		}
@@ -1204,7 +1204,7 @@ nometa:
 			exparg.lastp = &str->next;
 			break;
 		default:	/* GLOB_NOSPACE */
-			error("Out of space");
+			sh_error("Out of space");
 		}
 		str = str->next;
 	}
@@ -1749,5 +1749,5 @@ varunset(const char *end, const char *var, const char *umsg, int varflags)
 		} else
 			msg = umsg;
 	}
-	error("%.*s: %s%s", end - var - 1, var, msg, tail);
+	sh_error("%.*s: %s%s", end - var - 1, var, msg, tail);
 }