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 /lib/ulockmgr.c | |
| parent | 04950575c363570aefba125fb774dbf91354844a (diff) | |
| download | android_external_fuse-stable/cm-12.0-YNG3C.tar.gz android_external_fuse-stable/cm-12.0-YNG3C.tar.bz2 android_external_fuse-stable/cm-12.0-YNG3C.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 'lib/ulockmgr.c')
| -rw-r--r-- | lib/ulockmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ulockmgr.c b/lib/ulockmgr.c index b875c50..ebd68c6 100644 --- a/lib/ulockmgr.c +++ b/lib/ulockmgr.c @@ -356,10 +356,10 @@ static uint32_t owner_hash(const unsigned char *id, size_t id_len) static int ulockmgr_canonicalize(int fd, struct flock *lock) { - off_t offset; + loff_t offset; if (lock->l_whence == SEEK_CUR) { offset = lseek(fd, 0, SEEK_CUR); - if (offset == (off_t) -1) + if (offset == (loff_t) -1) return -errno; } else if (lock->l_whence == SEEK_END) { struct stat stbuf; |
