Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 984d3570 authored by Erik Gilling's avatar Erik Gilling
Browse files

update libsync to support new timeout semantics

Change-Id: Ibedbd261bb96a84785c4e679b6fc4061287d5d7d
parent 6302b420
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ struct sync_pt_info {
};

/* timeout in msecs */
int sync_wait(int fd, unsigned int timeout);
int sync_wait(int fd, int timeout);
int sync_merge(const char *name, int fd1, int fd2);
struct sync_fence_info_data *sync_fence_info(int fd);
struct sync_pt_info *sync_pt_info(struct sync_fence_info_data *info,
+2 −2
Original line number Diff line number Diff line
@@ -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);
}