vhost: fix build
authorHuawei Xie <huawei.xie@intel.com>
Thu, 19 Mar 2015 10:43:24 +0000 (18:43 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Mar 2015 22:01:42 +0000 (23:01 +0100)
commit857af048ac59d7a73735ef3a707c94e1dcc49f5d
tree16204b1b2cbe8cfce9a8bb80183c7bf04a9f93bf
parent6cb0bf33838aa15f8eaf6dbde522f10355629603
vhost: fix build

Fix the error "missing initializer" and "cast to pointer from integer of different size".

For the pointer to integer cast issue, need to investigate changing the typeof mapped_address.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
lib/librte_vhost/vhost_user/vhost-net-user.c
lib/librte_vhost/vhost_user/virtio-net-user.c