telemetry: fix build
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 27 Jun 2019 19:51:44 +0000 (20:51 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 28 Jun 2019 09:06:08 +0000 (11:06 +0200)
commit500e70b90c05c267d53963c757c3b1f66908b2fa
tree64fa96ca660a06a78b87916a3eb03e4429d8d122
parent28b2d3d112e2bde5264921d8feca89e2e5708a87
telemetry: fix build

Build error:
../lib/librte_telemetry/rte_telemetry.c:558:28:
  error: comparison of unsigned expression < 0 is always false
  [-Werror,-Wtautological-compare]

Build error not observed in default make build because telemetry library
disabled by default but easier to reproduce via meson.

Fixing by converting unsigned variables to signed.

Fixes: 0fe3a37924d4 ("telemetry: format json response when sending stats")
Fixes: 4080e46c8078 ("telemetry: support global metrics")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
lib/librte_telemetry/rte_telemetry.c
lib/librte_telemetry/rte_telemetry_internal.h