diff options
author | Denys Vlasenko | 2009-09-23 23:15:43 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-09-23 23:15:43 +0200 |
commit | 606291beabab14c85a141c7a4225fbcab8d19fbd (patch) | |
tree | 4f46cd21214432feeb610e237e8dd49ef908c8f6 /shell/hush.c | |
parent | 1f27ab0d4bb65425496ff4ed0fbbd0f5bb32786f (diff) | |
download | busybox-606291beabab14c85a141c7a4225fbcab8d19fbd.zip busybox-606291beabab14c85a141c7a4225fbcab8d19fbd.tar.gz |
*: 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index eaf9114..9db2091 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -787,7 +787,7 @@ static void xxfree(void *ptr) * HUSH_DEBUG >= 2 prints line number in this file where it was detected. */ #if HUSH_DEBUG < 2 -# define die_if_script(lineno, fmt...) die_if_script(fmt) +# define die_if_script(lineno, ...) die_if_script(__VA_ARGS__) # define syntax_error(lineno, msg) syntax_error(msg) # define syntax_error_at(lineno, msg) syntax_error_at(msg) # 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) # undef syntax_error_unterm_str # undef syntax_error_unexpected_ch #else -# define die_if_script(fmt...) die_if_script(__LINE__, fmt) +# define die_if_script(...) die_if_script(__LINE__, __VA_ARGS__) # define syntax_error(msg) syntax_error(__LINE__, msg) # define syntax_error_at(msg) syntax_error_at(__LINE__, msg) # define syntax_error_unterm_ch(ch) syntax_error_unterm_ch(__LINE__, ch) |