| commit | 984d35703d5c6738253193bd53da9dedb3b58243 | [log] [tgz] |
|---|---|---|
| author | Erik Gilling <konkers@android.com> | Tue Aug 21 18:21:18 2012 -0700 |
| committer | Erik Gilling <konkers@android.com> | Tue Aug 21 18:21:18 2012 -0700 |
| tree | 0f1d442fab3c7bde6497e6aba2adacbfad487fe8 | |
| parent | 6302b420554724c1434e27e2cd46cb43f5fb7bca [diff] [blame] |
update libsync to support new timeout semantics Change-Id: Ibedbd261bb96a84785c4e679b6fc4061287d5d7d
diff --git a/libsync/sync.c b/libsync/sync.c index c20f15e..4892866 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); }