Changes by: cha0smaster
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4007/ntfsprogs
Modified Files:
ntfsmount.c
Log Message:
Fix ntfsmount warnings.
Index: ntfsmount.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -r1.20 -r1.21
--- ntfsmount.c 3 Aug 2005 14:06:04 -0000 1.20
+++ ntfsmount.c 3 Aug 2005 22:29:14 -0000 1.21
@@ -401,7 +401,7 @@ static int ntfs_fuse_read(const char *or
size = na->data_size - offset;
while (size) {
res = ntfs_attr_pread(na, offset, size, buf);
- if (res < size)
+ if (res < (s64)size)
Eprintf("ntfs_attr_pread returned less bytes than "
"requested.\n");
if (res <= 0) {
@@ -450,7 +450,7 @@ static int ntfs_fuse_write(const char *o
}
while (size) {
res = ntfs_attr_pwrite(na, offset, size, buf);
- if (res < size)
+ if (res < (s64)size)
Eprintf("ntfs_attr_pwrite returned less bytes than "
"requested.\n");
if (res <= 0) {
@@ -558,7 +558,7 @@ exit:
return res;
}
-static int ntfs_fuse_rm_file(char *file)
+static int ntfs_fuse_rm_file(char *file __attribute__((unused)))
{
return -EOPNOTSUPP;
}
@@ -640,7 +640,7 @@ static int ntfs_fuse_getxattr(const char
goto exit;
}
if (ret)
- ret++; /* For space delimiter .*/
+ ret++; /* For space delimiter. */
ret += tmp_name_len;
if ((size_t)ret <= size) {
/* Don't add space to the beginning of line. */
|