numam-dpdk/lib/librte_vhost/vhost_user
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
..
fd_man.c vhost: comment unwanted callback 2015-06-30 17:49:08 +02:00
fd_man.h vhost: support dynamically registering server 2015-02-24 01:38:17 +01:00
vhost-net-user.c vhost: get rid of duplicate code 2015-09-25 14:55:17 +02:00
vhost-net-user.h vhost: cleanup unix socket 2015-06-30 17:49:08 +02:00
virtio-net-user.c vhost: fix wrong usage of eventfd_t 2015-09-25 14:58:30 +02:00
virtio-net-user.h vhost: support vhost-user 2015-02-24 01:38:15 +01:00