diff options
author | Spegelius <spegelius@gmail.com> | 2014-11-23 15:19:10 +0200 |
---|---|---|
committer | Spegelius <spegelius@gmail.com> | 2014-11-23 15:19:10 +0200 |
commit | 81b1cc26b41b25afd2d8e09dce1bad4969016066 (patch) | |
tree | cae54d79331460e923279431582bce9ef405bbeb /test/test.c | |
parent | 04950575c363570aefba125fb774dbf91354844a (diff) | |
download | android_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 |
Changed off_t to loff_tstaging/cm-12.1stable/cm-12.1-YOG7Dstable/cm-12.1-YOG4Pstable/cm-12.1-YOG3Cstable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Cstable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tstable/cm-12.0-YNG1Icm-12.1cm-12.0
- 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.c | 8 |
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) { |