ash: "ash: syntax error: XXX unexpected" -> "ash: syntax error: unexpected XXX"

This commit is contained in:
Denis Vlasenko 2008-11-28 03:50:46 +00:00
parent 41eb300ff6
commit 7b2294edff

View File

@ -10032,7 +10032,7 @@ raise_error_unexpected_syntax(int token)
char msg[64];
int l;
l = sprintf(msg, "%s unexpected", tokname(lasttoken));
l = sprintf(msg, "unexpected %s", tokname(lasttoken));
if (token >= 0)
sprintf(msg + l, " (expecting %s)", tokname(token));
raise_error_syntax(msg);