app/compress-perf: call generic strlcpy
authorThomas Monjalon <thomas@monjalon.net>
Sun, 24 Feb 2019 22:42:01 +0000 (23:42 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:35 +0000 (18:17 +0100)
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>
app/test-compress-perf/comp_perf_options_parse.c

index 66eb81f..d2b208d 100644 (file)
@@ -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;
 }