src/cmd: print all usage messages to stderr

All utilities print their usage message to stderr,
cmp(1) and getflags(8) should do the same.
This commit is contained in:
Tom Schwindl 2022-08-26 19:18:34 +02:00 committed by Dan Cross
parent 7b8251125b
commit a4af25bc0d
2 changed files with 2 additions and 2 deletions

View file

@ -107,6 +107,6 @@ main(int argc, char *argv[])
static void
usage(void)
{
print("Usage: cmp [-lsL] file1 file2 [offset1 [offset2] ]\n");
fprint(2, "Usage: cmp [-lsL] file1 file2 [offset1 [offset2] ]\n");
exits("usage");
}

View file

@ -4,7 +4,7 @@
void
usage(void)
{
print("status=usage\n");
fprint(2, "status=usage\n");
exits(0);
}