From: Thomas Monjalon Date: Sun, 24 Feb 2019 22:42:01 +0000 (+0100) Subject: app/compress-perf: call generic strlcpy X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6e37913f891f356fae7fa2936ceda9b27b0fe065;p=dpdk.git app/compress-perf: call generic strlcpy The call to strlcpy uses either libc, libbsd or internal rte_strlcpy. No need to call the DPDK flavor explicitly. Signed-off-by: Thomas Monjalon Reviewed-by: Rami Rosen --- diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test-compress-perf/comp_perf_options_parse.c index 66eb81fc59..d2b208de35 100644 --- a/app/test-compress-perf/comp_perf_options_parse.c +++ b/app/test-compress-perf/comp_perf_options_parse.c @@ -373,7 +373,7 @@ parse_driver_name(struct comp_test_data *test_data, const char *arg) if (strlen(arg) > (sizeof(test_data->driver_name) - 1)) return -1; - rte_strlcpy(test_data->driver_name, arg, + strlcpy(test_data->driver_name, arg, sizeof(test_data->driver_name)); return 0; @@ -385,7 +385,7 @@ parse_test_file(struct comp_test_data *test_data, const char *arg) if (strlen(arg) > (sizeof(test_data->input_file) - 1)) return -1; - rte_strlcpy(test_data->input_file, arg, sizeof(test_data->input_file)); + strlcpy(test_data->input_file, arg, sizeof(test_data->input_file)); return 0; }