diff options
author | Erik Gilling <konkers@android.com> | 2012-08-21 18:21:18 -0700 |
---|---|---|
committer | Erik Gilling <konkers@android.com> | 2012-08-21 18:21:18 -0700 |
commit | 984d35703d5c6738253193bd53da9dedb3b58243 (patch) | |
tree | 0f1d442fab3c7bde6497e6aba2adacbfad487fe8 /libsync | |
parent | 6302b420554724c1434e27e2cd46cb43f5fb7bca (diff) | |
download | core-984d35703d5c6738253193bd53da9dedb3b58243.tar.gz core-984d35703d5c6738253193bd53da9dedb3b58243.tar.bz2 core-984d35703d5c6738253193bd53da9dedb3b58243.zip |
update libsync to support new timeout semantics
Change-Id: Ibedbd261bb96a84785c4e679b6fc4061287d5d7d
Diffstat (limited to 'libsync')
-rw-r--r-- | libsync/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsync/sync.c b/libsync/sync.c index c20f15edc..489286673 100644 --- a/libsync/sync.c +++ b/libsync/sync.c @@ -27,9 +27,9 @@ #include <sys/stat.h> #include <sys/types.h> -int sync_wait(int fd, unsigned int timeout) +int sync_wait(int fd, int timeout) { - __u32 to = timeout; + __s32 to = timeout; return ioctl(fd, SYNC_IOC_WAIT, &to); } |