Changes by: flatcap
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv17521/libntfs
Modified Files:
disk_io.c ntfs_rec.c ntfsd.c
Log Message:
minor build fixes
Index: disk_io.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/disk_io.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -U2 -r1.12 -r1.13
--- disk_io.c 2001/04/11 14:29:12 1.12
+++ disk_io.c 2001/04/11 15:29:39 1.13
@@ -392,5 +392,5 @@
if (!is_file_record(m->magic))
goto file_corrupt;
- if (MSEQNO(mref) && MSEQNO(mref) != le16_to_cpu(m->sequence_number))
+ if (MSEQNO(*mref) && MSEQNO(*mref) != le16_to_cpu(m->sequence_number))
goto file_corrupt;
if (!(m->flags & MFT_RECORD_IN_USE))
Index: ntfs_rec.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/ntfs_rec.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -U2 -r1.6 -r1.7
--- ntfs_rec.c 2001/04/11 11:49:16 1.6
+++ ntfs_rec.c 2001/04/11 15:29:39 1.7
@@ -24,4 +24,5 @@
#include <linux/types.h>
+#include "volume.h"
#include "ntfs_rec.h"
#include "layout.h"
Index: ntfsd.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/ntfsd.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -U2 -r1.4 -r1.5
--- ntfsd.c 2001/04/10 23:37:19 1.4
+++ ntfsd.c 2001/04/11 15:29:39 1.5
@@ -30,4 +30,5 @@
#include <sched.h>
+#include "volume.h"
#include "ntfsd.h"
@@ -35,5 +36,5 @@
* Keep track of mounted volumes so we can walk the list and sync them all.
*/
-LISTHEAD(ntfs_mounted_volumes);
+LIST_HEAD(ntfs_mounted_volumes);
int nr_ntfs_mounted_volumes = 0;
BOOL ntfs_need_sync = FALSE;
@@ -92,5 +93,5 @@
static void ntfsd_thread(int i)
{
- if (atomic_read(ntfsd_times_started) && nr_ntfs_mounted_volumes)
+ if (atomic_read(&ntfsd_times_started) && nr_ntfs_mounted_volumes)
ntfs_need_sync = TRUE;
}
@@ -104,5 +105,5 @@
if (atomic_inc_and_test(&ntfsd_times_started)) {
- fprinf(stderr, "Linux-NTFS: ntfsd started counter "
+ fprintf(stderr, "Linux-NTFS: ntfsd started counter "
"would overflow. Not starting.\n");
err = EMFILE;
|