turn on command options
Modified: trunk/rosapps/sysutils/dosfsck/Makefile
Modified: trunk/rosapps/sysutils/dosfsck/dosfsck.c

Modified: trunk/rosapps/sysutils/dosfsck/Makefile
--- trunk/rosapps/sysutils/dosfsck/Makefile	2005-07-29 22:53:33 UTC (rev 16884)
+++ trunk/rosapps/sysutils/dosfsck/Makefile	2005-07-29 23:01:16 UTC (rev 16885)
@@ -1,5 +1,5 @@
 CC=mingw32-gcc
-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
 
 all: dosfsck.exe
 

Modified: trunk/rosapps/sysutils/dosfsck/dosfsck.c
--- trunk/rosapps/sysutils/dosfsck/dosfsck.c	2005-07-29 22:53:33 UTC (rev 16884)
+++ trunk/rosapps/sysutils/dosfsck/dosfsck.c	2005-07-29 23:01:16 UTC (rev 16885)
@@ -12,8 +12,8 @@
 #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"
@@ -81,8 +81,7 @@
 
 
 int main(int argc,char **argv)
-{
-	int optind;
+{
     DOS_FS fs;
     int rw,salvage_files,verify,c;
     unsigned long free_clusters;
@@ -90,12 +89,7 @@
     rw = salvage_files = verify = 0;
     interactive = 1;
     check_atari();
-
-#if 1
-	optind = 1;
-	verbose = 1;
-	list = 1;
-#else
+
     while ((c = getopt(argc,argv,"Aad:flnrtu:vVwy")) != EOF)
 	switch (c) {
 	    case 'A': /* toggle Atari format */
@@ -149,7 +143,6 @@
 	exit(2);
     }
     if (optind != argc-1) usage(argv[0]);
-#endif
 
     printf( "dosfsck " VERSION ", " VERSION_DATE ", FAT32, LFN\n" );
     fs_open(argv[optind],rw);