#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"
int main(int argc,char **argv)
-{\r
- int optind;
+{
DOS_FS fs;
int rw,salvage_files,verify,c;
unsigned long free_clusters;
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 */
exit(2);
}
if (optind != argc-1) usage(argv[0]);
-#endif\r
printf( "dosfsck " VERSION ", " VERSION_DATE ", FAT32, LFN\n" );
fs_open(argv[optind],rw);