Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/ntfsprogs
In directory delta357:/tmp/cvs-serv14717/ntfsprogs
Modified Files:
ntfscp.c ntfsinfo.c
Log Message:
fix some sparse warnings
btw, it looks like sparse loses it head when it see something like:
void foo(s64 *bar)
{
...
}
...
{
s64 baz;
foo(&baz);
...
}
Index: ntfscp.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfscp.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -r1.40 -r1.41
--- ntfscp.c 28 Nov 2006 10:09:57 -0000 1.40
+++ ntfscp.c 12 Dec 2006 15:44:52 -0000 1.41
@@ -72,7 +72,7 @@ struct options {
static const char *EXEC_NAME = "ntfscp";
static struct options opts;
-volatile sig_atomic_t caught_terminate = 0;
+static volatile sig_atomic_t caught_terminate = 0;
/**
* version - Print version information about the program
Index: ntfsinfo.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfsinfo.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -p -r1.155 -r1.156
--- ntfsinfo.c 28 Nov 2006 10:09:57 -0000 1.155
+++ ntfsinfo.c 12 Dec 2006 15:44:53 -0000 1.156
@@ -985,7 +985,7 @@ static void ntfs_dump_attr_security_desc
if (attr->non_resident) {
/* FIXME: We don't handle fragmented mapping pairs case. */
- runlist *rl = ntfs_mapping_pairs_decompress(vol, attr, 0);
+ runlist *rl = ntfs_mapping_pairs_decompress(vol, attr, NULL);
if (rl) {
s64 data_size, bytes_read;
@@ -1282,7 +1282,7 @@ static void ntfs_dump_attribute_header(A
}
if (opts.verbose) {
- runlist *rl = ntfs_mapping_pairs_decompress(vol, a, 0);
+ runlist *rl = ntfs_mapping_pairs_decompress(vol, a, NULL);
if (rl) {
runlist *rlc = rl;
// TODO: Switch this to properly aligned hex...
@@ -1878,7 +1878,7 @@ static void ntfs_dump_attr_ea(ATTR_RECOR
if (!opts.verbose)
return;
/* FIXME: We don't handle fragmented mapping pairs case. */
- rl = ntfs_mapping_pairs_decompress(vol, attr, 0);
+ rl = ntfs_mapping_pairs_decompress(vol, attr, NULL);
if (rl) {
s64 bytes_read;
|