From 36c5f89d134dffa6516a60d37ee8df6bc26ec040 Mon Sep 17 00:00:00 2001 From: cha0smaster Date: Wed, 3 Aug 2005 22:29:14 +0000 Subject: [PATCH] Fix ntfsmount warnings. --- ntfsprogs/ntfsmount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index 02ef4b21..04d5e6b8 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -401,7 +401,7 @@ static int ntfs_fuse_read(const char *org_path, char *buf, size_t size, 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 *org_path, const char *buf, size_t size, } 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 *path, const char *name, 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. */