xfstests: fix bulkstat related compile warnings.

Use correct types for bulkstat structure to avoid pointer warnings.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Dave Chinner
2010-01-21 08:53:44 +11:00
parent 615144496f
commit b1da830791
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1550,7 +1550,7 @@ bulkstat_f(int opno, long r)
{
int count;
int fd;
__uint64_t last;
__u64 last;
int nent;
xfs_bstat_t *t;
__int64_t total;
@@ -1583,7 +1583,7 @@ bulkstat1_f(int opno, long r)
pathname_t f;
int fd;
int good;
__uint64_t ino;
__u64 ino;
struct stat64 s;
xfs_bstat_t t;
int v;
+1 -1
View File
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
printf("Iteration %d ... (%d files)", k, nfiles);
memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
a.lastip = &last_inode;
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
a.ocount = &count;
+1 -1
View File
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
memset(genlist, 0, nfiles * sizeof(__u32));
memset(ret, 0, nfiles * sizeof(xfs_bstat_t));
memset(&a, 0, sizeof(xfs_fsop_bulkreq_t));
a.lastip = &last_inode;
a.lastip = (__u64 *)&last_inode;
a.icount = nfiles;
a.ubuffer = ret;
a.ocount = &count;
+3 -3
View File
@@ -283,7 +283,7 @@ static int test_immutable(const char *dir)
ino = st.st_ino;
bulkreq.lastip = &ino;
bulkreq.lastip = (__u64 *)&ino;
bulkreq.icount = 1;
bulkreq.ubuffer = &bstat;
bulkreq.ocount = NULL;
@@ -943,7 +943,7 @@ static int test_append(const char *dir)
ino = st.st_ino;
bulkreq.lastip = &ino;
bulkreq.lastip = (__u64 *)&ino;
bulkreq.icount = 1;
bulkreq.ubuffer = &bstat;
bulkreq.ocount = NULL;
@@ -1353,7 +1353,7 @@ static int test_append(const char *dir)
ino = st.st_ino;
bulkreq.lastip = &ino;
bulkreq.lastip = (__u64 *)&ino;
bulkreq.icount = 1;
bulkreq.ubuffer = &bstat;
bulkreq.ocount = NULL;