Yuanhan Liu 9702b2b53f vhost: fix wrong usage of eventfd_t
According to eventfd man page:

    typedef uint64_t eventfd_t;

    int eventfd_read(int fd, eventfd_t *value);
    int eventfd_write(int fd, eventfd_t value);

eventfd_t is defined for the second arg(value), but not for fd.

Here I redefine those fd fields to `int' type, which also removes
the redundant (int) cast. And as the man page stated, we should
cast 1 to eventfd_t type for eventfd_write().

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-09-25 14:58:30 +02:00
..
2015-05-19 17:35:33 +02:00
2015-06-12 11:10:10 +02:00
2015-06-24 12:01:14 +02:00
2015-08-10 16:25:30 +02:00
2015-06-12 11:10:10 +02:00
2015-05-11 15:51:14 +02:00
2015-09-03 19:22:48 +02:00
2015-07-13 19:27:31 +02:00
2015-06-24 12:01:14 +02:00
2015-06-12 11:10:10 +02:00
2015-06-12 11:10:10 +02:00
2015-05-11 15:51:14 +02:00
2015-06-12 11:10:10 +02:00
2015-05-11 15:51:14 +02:00
2015-03-10 11:47:46 +01:00
2015-09-25 14:58:30 +02:00
2015-06-24 12:01:14 +02:00
2015-05-11 15:51:14 +02:00
2015-05-11 15:51:14 +02:00