Changes by: antona
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27248
Modified Files:
ntfsdump_logfile.c ntfsrm.c
Log Message:
Fix compiler warnings under cygwin.
Index: ntfsdump_logfile.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsdump_logfile.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -p -r1.26 -r1.27
--- ntfsdump_logfile.c 19 Jun 2005 21:09:41 -0000 1.26
+++ ntfsdump_logfile.c 21 Jun 2005 09:57:22 -0000 1.27
@@ -1,7 +1,7 @@
/**
* ntfsdump_logfile - Part of the Linux-NTFS project.
*
- * Copyright (c) 2000-2004 Anton Altaparmakov
+ * Copyright (c) 2000-2005 Anton Altaparmakov
*
* This utility will interpret the contents of the journal ($LogFile) of an
* NTFS partition and display the results on stdout. Errors will be output to
@@ -387,8 +387,8 @@ static void dump_restart_areas_area(REST
le16_to_cpu(ra->log_page_data_offset),
le16_to_cpu(ra->log_page_data_offset));
printf("restart_log_open_count = %u (0x%x)\n",
- le32_to_cpu(ra->restart_log_open_count),
- le32_to_cpu(ra->restart_log_open_count));
+ (unsigned)le32_to_cpu(ra->restart_log_open_count),
+ (unsigned)le32_to_cpu(ra->restart_log_open_count));
lcr = (LOG_CLIENT_RECORD*)((u8*)ra +
le16_to_cpu(ra->client_array_offset));
for (client = 0; client < le16_to_cpu(ra->log_clients); client++) {
Index: ntfsrm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsrm.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -p -r1.33 -r1.34
--- ntfsrm.c 19 Jun 2005 21:09:41 -0000 1.33
+++ ntfsrm.c 21 Jun 2005 09:57:22 -0000 1.34
@@ -2,6 +2,7 @@
* ntfsrm - Part of the Linux-NTFS project.
*
* Copyright (c) 2004 Richard Russon
+ * Copyright (c) 2005 Anton Altaparmakov
*
* This utility will delete files from an NTFS volume.
*
@@ -4276,7 +4277,8 @@ static int ntfs_index_dump_alloc (ntfs_a
break;
}
printf ("%.*s", indent, space_line);
- printf ("fill = %u/%u\n", block->index.index_length, block->index.allocated_size);
+ printf ("fill = %u/%u\n", (unsigned)block->index.index_length,
+ (unsigned)block->index.allocated_size);
return 0;
}
|