mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Revert a WIP change that shouldn't have been in last commit.
This commit is contained in:
parent
539309e427
commit
f45a52b3c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137162
@ -63,8 +63,6 @@ static const char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
|
|||||||
int Fflag, fflag, rflag, rval;
|
int Fflag, fflag, rflag, rval;
|
||||||
const char *fname;
|
const char *fname;
|
||||||
|
|
||||||
int no_files;
|
|
||||||
|
|
||||||
static void obsolete(char **);
|
static void obsolete(char **);
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
|
|
||||||
@ -140,7 +138,8 @@ main(int argc, char *argv[])
|
|||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += 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
|
* 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)
|
if (*argv)
|
||||||
for (first = 1; (fname = *argv++);) {
|
for (first = 1; (fname = *argv++);) {
|
||||||
if ((fp = fopen(fname, "r")) == NULL ||
|
if ((fp = fopen(fname, "r")) == NULL ||
|
||||||
|
Loading…
Reference in New Issue
Block a user