eal: remove size for setting runtime directory
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 9 Feb 2022 06:54:01 +0000 (22:54 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 9 Feb 2022 15:42:31 +0000 (16:42 +0100)
commit36514d8dfafa22dbf0b784f705086e279e1c1e41
treeb0effcb77d3c230770d71ab73daef24e79045aca
parentf3ca33bb20925cca90184bd3f05ebedc78a929b2
eal: remove size for setting runtime directory

The size argument to eal_set_runtime_dir is useless and was
being used incorrectly in strlcpy. It worked only because
all callers passed PATH_MAX which is same as sizeof the destination
runtime_dir.

Note: this is an internal API so no user exposed change.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/eal/common/eal_common_config.c
lib/eal/common/eal_private.h
lib/eal/freebsd/eal.c
lib/eal/linux/eal.c