diff options
author | paul <paul@FreeBSD.org> | 2004-11-03 17:52:29 +0000 |
---|---|---|
committer | paul <paul@FreeBSD.org> | 2004-11-03 17:52:29 +0000 |
commit | a13bf2199da61e4a46293950aacc117ed897d3df (patch) | |
tree | 8a922c52f88b9fda2c72ed18c805aa33a14e3319 /usr.bin | |
parent | 09d8d105e4c500600dd2ec840f0564b75c1731e1 (diff) | |
download | FreeBSD-src-a13bf2199da61e4a46293950aacc117ed897d3df.zip FreeBSD-src-a13bf2199da61e4a46293950aacc117ed897d3df.tar.gz |
Revert a WIP change that shouldn't have been in last commit.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tail/tail.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c index 8fa0ed6..2a3ee13 100644 --- a/usr.bin/tail/tail.c +++ b/usr.bin/tail/tail.c @@ -63,8 +63,6 @@ static const char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93"; int Fflag, fflag, rflag, rval; const char *fname; -int no_files; - static void obsolete(char **); static void usage(void); @@ -140,7 +138,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - no_files = argc; + if (fflag && argc > 1) + errx(1, "-f option only appropriate for a single file"); /* * If displaying in reverse, don't permit follow option, and convert @@ -169,7 +168,6 @@ main(int argc, char *argv[]) } } - printf("No files: %d\n", no_files); if (*argv) for (first = 1; (fname = *argv++);) { if ((fp = fopen(fname, "r")) == NULL || |