Oops! VolumeSeek() should be loff_t(loff_t offset) instead of off_t VolumeSeek(off_t offset)! But there must be yet another bug, because when I changed it, the bug was still there, although the code generated for VolumeSeek() became correct. Will try to catch the other bug tomorrow.

Caught it! VolumeSeek() wasn't declared anywhere so its return type was assimed int. See patch. Needless to say that now DOSFSCK works! I can put the binary online for test. Just let me know.


Lucho

--- io.h-       2002-10-17 08:43:26.000000000 +0200
+++ io.h        2004-03-31 22:19:20.000000000 +0200
@@ -19,6 +19,10 @@
 #endif
 #endif

+loff_t VolumeSeek(loff_t offset);
+
+/* Sets the virtual file pointer */
+
 void fs_open(char *path,int rw);

 /* Opens the file system PATH. If RW is zero, the file system is opened
--- volume.c-   2004-01-27 20:33:50.000000000 +0200
+++ volume.c    2004-03-31 21:49:56.000000000 +0200
@@ -364,7 +364,7 @@
 *** Sets the virtual file pointer
 
***************************************************************************************/

-off_t VolumeSeek(off_t offset)
+loff_t VolumeSeek(loff_t offset)
 {
     VolumePointer = offset;
     return offset;


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to