aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 23:15:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 23:15:43 +0200
commit606291beabab14c85a141c7a4225fbcab8d19fbd (patch)
tree4f46cd21214432feeb610e237e8dd49ef908c8f6 /shell/hush.c
parent1f27ab0d4bb65425496ff4ed0fbbd0f5bb32786f (diff)
downloadbusybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.tar.gz
busybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.tar.bz2
busybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.zip
*: more portability fixes by Dan Fandrich
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index eaf911458..9db2091dd 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -787,7 +787,7 @@ static void xxfree(void *ptr)
787 * HUSH_DEBUG >= 2 prints line number in this file where it was detected. 787 * HUSH_DEBUG >= 2 prints line number in this file where it was detected.
788 */ 788 */
789#if HUSH_DEBUG < 2 789#if HUSH_DEBUG < 2
790# define die_if_script(lineno, fmt...) die_if_script(fmt) 790# define die_if_script(lineno, ...) die_if_script(__VA_ARGS__)
791# define syntax_error(lineno, msg) syntax_error(msg) 791# define syntax_error(lineno, msg) syntax_error(msg)
792# define syntax_error_at(lineno, msg) syntax_error_at(msg) 792# define syntax_error_at(lineno, msg) syntax_error_at(msg)
793# define syntax_error_unterm_ch(lineno, ch) syntax_error_unterm_ch(ch) 793# define syntax_error_unterm_ch(lineno, ch) syntax_error_unterm_ch(ch)
@@ -856,7 +856,7 @@ static void syntax_error_unexpected_ch(unsigned lineno, int ch)
856# undef syntax_error_unterm_str 856# undef syntax_error_unterm_str
857# undef syntax_error_unexpected_ch 857# undef syntax_error_unexpected_ch
858#else 858#else
859# define die_if_script(fmt...) die_if_script(__LINE__, fmt) 859# define die_if_script(...) die_if_script(__LINE__, __VA_ARGS__)
860# define syntax_error(msg) syntax_error(__LINE__, msg) 860# define syntax_error(msg) syntax_error(__LINE__, msg)
861# define syntax_error_at(msg) syntax_error_at(__LINE__, msg) 861# define syntax_error_at(msg) syntax_error_at(__LINE__, msg)
862# define syntax_error_unterm_ch(ch) syntax_error_unterm_ch(__LINE__, ch) 862# define syntax_error_unterm_ch(ch) syntax_error_unterm_ch(__LINE__, ch)