eal: cleanup strerror function
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 7 Sep 2017 13:09:56 +0000 (14:09 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 5 Oct 2017 21:54:39 +0000 (23:54 +0200)
commit016c32bd3e3dfeeb9db52017ffd13c1f97ce92bf
tree4a90f963e4c41cac068734dedbe11d65efba1554
parent96128b365eff2a1e5477e676c08c1fc631cc82c2
eal: cleanup strerror function

When compiled on Ubuntu with extra warnings enabled, the rte_strerror()
function triggered a warning about an unused return value from
strerror_r(). Rather than always have this warning disabled, we fix this,
and in the process do some cleanup of the code so as to reduce the
complexity of the fix, e.g. not having the #ifdef macros inside the
snprintf call.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/eal_common_errno.c