1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix newlines in passwd(1) unrecognized option errors.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-10-09 23:06:42 +02:00
parent 50669b1556
commit b5240163b6

View file

@ -72,7 +72,6 @@ int main(int argc, char* argv[])
{
const char* cipher = "blowfish,a";
const char* argv0 = argv[0];
for ( int i = 1; i < argc; i++ )
{
const char* arg = argv[i];
@ -97,12 +96,12 @@ int main(int argc, char* argv[])
arg = "c";
break;
default:
errx(1, "%s: unknown option -- '%c'", argv0, c);
errx(1, "unknown option -- '%c'", c);
}
}
else
{
errx(1, "%s: unrecognized option: %s", argv0, arg);
errx(1, "unrecognized option: %s", arg);
}
}