aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorSpegelius <spegelius@gmail.com>2014-11-23 15:19:10 +0200
committerSpegelius <spegelius@gmail.com>2014-11-23 15:19:10 +0200
commit81b1cc26b41b25afd2d8e09dce1bad4969016066 (patch)
treecae54d79331460e923279431582bce9ef405bbeb /test/test.c
parent04950575c363570aefba125fb774dbf91354844a (diff)
downloadandroid_external_fuse-staging/cm-12.1.tar.gz
android_external_fuse-staging/cm-12.1.tar.bz2
android_external_fuse-staging/cm-12.1.zip
- off_t is long, loff_t is long long (32bit vs. 64bit) - loff_t required by exfat at least so fuse needs to have it also Change-Id: I76a4e4cc1af9b85cd0bed2bb220723e959b1a04f
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c
index c421cda..10ed45a 100644
--- a/test/test.c
+++ b/test/test.c
@@ -286,7 +286,7 @@ static int check_data(const char *path, const char *data, int offset,
PERROR("open");
return -1;
}
- if (lseek(fd, offset, SEEK_SET) == (off_t) -1) {
+ if (lseek(fd, offset, SEEK_SET) == (loff_t) -1) {
PERROR("lseek");
close(fd);
return -1;
@@ -324,7 +324,7 @@ static int fcheck_data(int fd, const char *data, int offset,
{
char buf[4096];
int res;
- if (lseek(fd, offset, SEEK_SET) == (off_t) -1) {
+ if (lseek(fd, offset, SEEK_SET) == (loff_t) -1) {
PERROR("lseek");
return -1;
}
@@ -829,7 +829,7 @@ static int do_test_open(int exist, int flags, const char *flags_str, int mode)
int err = 0;
int res;
int fd;
- off_t off;
+ loff_t off;
start_test("open(%s, %s, 0%03o)", exist ? "+" : "-", flags_str, mode);
unlink(testfile);
@@ -910,7 +910,7 @@ static int do_test_open(int exist, int flags, const char *flags_str, int mode)
}
}
off = lseek(fd, SEEK_SET, 0);
- if (off == (off_t) -1) {
+ if (off == (loff_t) -1) {
PERROR("lseek");
err--;
} else if (off != 0) {