svn path=/trunk/; revision=16885
-OBJECTS = boot.o check.o common.o dosfsck.o fat.o file.o io.o lfn.o
+OBJECTS = getopt.o boot.o check.o common.o dosfsck.o fat.o file.o io.o lfn.o
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
-//#include <unistd.h>
-//#include <getopt.h>
+#include <unistd.h>
+#include <getopt.h>
#include "common.h"
#include "dosfsck.h"
#include "common.h"
#include "dosfsck.h"
int main(int argc,char **argv)
int main(int argc,char **argv)
DOS_FS fs;
int rw,salvage_files,verify,c;
unsigned long free_clusters;
DOS_FS fs;
int rw,salvage_files,verify,c;
unsigned long free_clusters;
rw = salvage_files = verify = 0;
interactive = 1;
check_atari();
rw = salvage_files = verify = 0;
interactive = 1;
check_atari();
-\r
-#if 1\r
- optind = 1;\r
- verbose = 1;\r
- list = 1;\r
-#else
while ((c = getopt(argc,argv,"Aad:flnrtu:vVwy")) != EOF)
switch (c) {
case 'A': /* toggle Atari format */
while ((c = getopt(argc,argv,"Aad:flnrtu:vVwy")) != EOF)
switch (c) {
case 'A': /* toggle Atari format */
exit(2);
}
if (optind != argc-1) usage(argv[0]);
exit(2);
}
if (optind != argc-1) usage(argv[0]);
printf( "dosfsck " VERSION ", " VERSION_DATE ", FAT32, LFN\n" );
fs_open(argv[optind],rw);
printf( "dosfsck " VERSION ", " VERSION_DATE ", FAT32, LFN\n" );
fs_open(argv[optind],rw);