Finished (?) merging with Lite2: cleaned up #include mess.

Updated getopt() usage.
This commit is contained in:
Bruce Evans 1997-03-12 16:46:32 +00:00
parent d97b1da168
commit 473e3a9ab9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23795
3 changed files with 3 additions and 21 deletions

View File

@ -43,7 +43,6 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <sys/param.h>
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <ufs/ufs/dinode.h>
@ -53,10 +52,7 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <ctype.h>
#include <err.h>
#include <fstab.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "fsck.h"
@ -75,11 +71,9 @@ main(argc, argv)
{
int ch;
int ret, maxrun = 0;
extern char *optarg;
extern int optind;
sync();
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != EOF) {
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != -1) {
switch (ch) {
case 'p':
preen++;

View File

@ -43,7 +43,6 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <sys/param.h>
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <ufs/ufs/dinode.h>
@ -53,10 +52,7 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <ctype.h>
#include <err.h>
#include <fstab.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "fsck.h"
@ -75,11 +71,9 @@ main(argc, argv)
{
int ch;
int ret, maxrun = 0;
extern char *optarg;
extern int optind;
sync();
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != EOF) {
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != -1) {
switch (ch) {
case 'p':
preen++;

View File

@ -43,7 +43,6 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <sys/param.h>
#include <sys/time.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <ufs/ufs/dinode.h>
@ -53,10 +52,7 @@ static const char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
#include <ctype.h>
#include <err.h>
#include <fstab.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "fsck.h"
@ -75,11 +71,9 @@ main(argc, argv)
{
int ch;
int ret, maxrun = 0;
extern char *optarg;
extern int optind;
sync();
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != EOF) {
while ((ch = getopt(argc, argv, "dfpnNyYb:c:l:m:")) != -1) {
switch (ch) {
case 'p':
preen++;