diff options
author | Thomas Monjalon <thomas@monjalon.net> | 2019-02-24 23:42:01 +0100 |
---|---|---|
committer | Ferruh Yigit <ferruh.yigit@intel.com> | 2019-03-01 18:17:35 +0100 |
commit | 6e37913f891f356fae7fa2936ceda9b27b0fe065 (patch) | |
tree | eec62ad92b4e38a397f51869dabdeb274c9de7f6 /app | |
parent | 797ed9916ac73efc8f3d0b1a9a354d50948566c9 (diff) | |
download | dpdk-next-eventdev-6e37913f891f356fae7fa2936ceda9b27b0fe065.zip dpdk-next-eventdev-6e37913f891f356fae7fa2936ceda9b27b0fe065.tar.gz dpdk-next-eventdev-6e37913f891f356fae7fa2936ceda9b27b0fe065.tar.xz |
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 <thomas@monjalon.net>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/test-compress-perf/comp_perf_options_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/test-compress-perf/comp_perf_options_parse.c b/app/test-compress-perf/comp_perf_options_parse.c index 66eb81f..d2b208d 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; } |