Fix compiler warnings under cygwin.

edge.strict_endians
antona 2005-06-21 09:57:22 +00:00
parent 31a8750c4d
commit 39b759ee99
2 changed files with 6 additions and 4 deletions

View File

@ -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(RESTART_PAGE_HEADER *rstr)
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++) {

View File

@ -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_attr *attr, VCN vcn, int indent)
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;
}