mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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:
parent
7b8251125b
commit
a4af25bc0d
2 changed files with 2 additions and 2 deletions
|
@ -107,6 +107,6 @@ main(int argc, char *argv[])
|
||||||
static void
|
static void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
print("Usage: cmp [-lsL] file1 file2 [offset1 [offset2] ]\n");
|
fprint(2, "Usage: cmp [-lsL] file1 file2 [offset1 [offset2] ]\n");
|
||||||
exits("usage");
|
exits("usage");
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
void
|
void
|
||||||
usage(void)
|
usage(void)
|
||||||
{
|
{
|
||||||
print("status=usage\n");
|
fprint(2, "status=usage\n");
|
||||||
exits(0);
|
exits(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue