diff options
| author | Peter Hawkins <thepish@FreeBSD.org> | 1998-10-18 04:46:24 +0000 |
|---|---|---|
| committer | Peter Hawkins <thepish@FreeBSD.org> | 1998-10-18 04:46:24 +0000 |
| commit | 18251d71460072452b18d453b4a4a3fdca309004 (patch) | |
| tree | 9457ee26a2115cd7edc31c39f3e0797e87645cac /usr.bin/indent | |
| parent | a19bc2b0fbbce332f8a007b6a74944cf85d9c1d4 (diff) | |
Notes
Diffstat (limited to 'usr.bin/indent')
| -rw-r--r-- | usr.bin/indent/indent.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c index 4dba8d5336cc..ff5e4203a0eb 100644 --- a/usr.bin/indent/indent.c +++ b/usr.bin/indent/indent.c @@ -46,7 +46,7 @@ static const char copyright[] = static char sccsid[] = "@(#)indent.c 5.17 (Berkeley) 6/7/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: indent.c,v 1.2 1997/07/15 09:50:59 charnier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -209,10 +209,10 @@ main(argc, argv) set_option(argv[i]); } /* end of for */ if (input == 0) { - usage(); + input = stdin; } if (output == 0) - if (troff) + if (troff || input == stdin) output = stdout; else { out_name = in_name; @@ -1133,7 +1133,7 @@ check_type: static void usage() { - fprintf(stderr, "usage: indent file [ outfile ] [ options ]\n"); + fprintf(stderr, "usage: indent [ file [ outfile ] ] [ options ]\n"); exit(1); } |
