examples/vhost_blk: use common macro for minimum
authorThomas Monjalon <thomas@monjalon.net>
Wed, 19 Feb 2020 10:39:22 +0000 (11:39 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit39f59f37ee410bbc43e88b3595108d9e2cffc132
treeadb4c3fdfa1d7e1540fbe7984ff8f6c1cbba9f78
parent699a225b3861bd1a02872ed389a317f2d18c8f3a
examples/vhost_blk: use common macro for minimum

The macro RTE_MIN can be used in vhost-blk example.

This change implies fixing the sign of used_len as size_t
as defined in vhost_strcpy_pad().

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost_blk/blk.c
examples/vhost_blk/vhost_blk.h
examples/vhost_blk/vhost_blk_compat.c