- reuse strings and messages. Saves about 600B

This commit is contained in:
Bernhard Reutner-Fischer
2006-06-07 20:17:41 +00:00
parent 4c5ad2fc90
commit 19008b8373
22 changed files with 77 additions and 86 deletions

View File

@@ -240,9 +240,9 @@ void incomplete_command(void)
exit(-1);
}
void invarg(char *msg, char *arg)
void invarg(const char const *arg, const char const *opt)
{
bb_error_msg("argument \"%s\" is wrong: %s", arg, msg);
bb_error_msg(bb_msg_invalid_arg, arg, opt);
exit(-1);
}