Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.

This commit is contained in:
Rob Landley 2007-11-27 01:41:32 -06:00
parent 0d88c38881
commit 860f263417
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ static void gotflag(void)
int type;
// Did we recognize this option?
if (!gof.this && !gof.noerror) error_exit("Unknown option %s\n", gof.arg);
if (!gof.this && !gof.noerror) error_exit("Unknown option %s", gof.arg);
else toys.optflags |= 1 << gof.this->shift;
// Does this option take an argument?

2
main.c
View File

@ -94,7 +94,7 @@ int toybox_main(void)
if (toys.argv[1]) {
if (toys.argv[1][0]!='-') {
toy_exec(toys.argv+1);
error_exit("Unknown command %s\n",toys.argv[1]);
error_exit("Unknown command %s",toys.argv[1]);
}
}

View File

@ -20,7 +20,7 @@ int help_main(void)
int i = t-toy_list;
char *s = help_data;
if (!t) error_exit("Unknown command '%s'\n", *toys.optargs);
if (!t) error_exit("Unknown command '%s'", *toys.optargs);
for (;;) {
while (i--) s += strlen(s) + 1;
if (*s != 255) break;