summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-11 21:38:33 +0000
committerDenis Vlasenko2006-10-11 21:38:33 +0000
commit8de82bf84f7311bd74b08d9f4b4d4a6fef4649b9 (patch)
treec4a33836a9d122205543dd51649c890cf38c590b /shell/hush.c
parent665b02cb60c32268fa3c7129f70ee44255d64dd3 (diff)
downloadbusybox-8de82bf84f7311bd74b08d9f4b4d4a6fef4649b9.zip
busybox-8de82bf84f7311bd74b08d9f4b4d4a6fef4649b9.tar.gz
hush.c: stop using __FILE__ (bad in out-of-tree builds)
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 779c9a3..4d78b47 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -312,7 +312,8 @@ static char *indenter(int i)
static void __syntax(char *file, int line) {
bb_error_msg("syntax error %s:%d", file, line);
}
-#define syntax() __syntax(__FILE__, __LINE__)
+// NB: was __FILE__, but that produces full path sometimess, so...
+#define syntax() __syntax("hush.c", __LINE__)
/* Index of subroutines: */
/* function prototypes for builtins */