From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id DC81B2A6A for ; Sun, 24 Feb 2019 23:42:21 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8081321E1C; Sun, 24 Feb 2019 17:42:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 24 Feb 2019 17:42:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=7aHTp8wTaWgq99frmyA2DRr o8YkNugxNReZ2YtVuTJI=; b=EpCzpbaRfGWH6567Ito3rAnf7kpN+F5l7Q2AXrs gEOju2nE8XjsOjjl+DXpD/2lEmHWV26puL+XqCPljTpN17AWkHWsh50oIzdeDiBP 30kIc+De/aoyEYTRVNh+Cr5AM6Jh91Ge0jiozBqsb7xDheFtYPqEiiGNNLoyzG1N 759o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=7aHTp8wTaWgq99frm yA2DRro8YkNugxNReZ2YtVuTJI=; b=ySrBAdaY8rxdrKJX0DJcdJr3JUfSYq5M/ uI/s6bQpkgHy3eWrXG//kj4yiePNUDFtUs4Gj+tSc38Tvek2Fju5CTHJnnh7TtRU TEV+v2R1JWVXqQ5zxgtFnrJlbeK/Criu4luApnraECPfai6FUywv/s/QfDm9PHwo YMaUA3K5eNWPqZ5MKKfgl2DrAp960lyJJfZIcECdX5DRNtUhtWAIGF/6iZGeDlyR slauw/+9bVrjW2Rnubtc7k/jkC+t+1aeBqAYT5M9cEsFt/ejgKbRO6fkmBbJpdbz UgrotcTop7Sw3Jug6r+u3YLdYTTso1u/rL/m/binPTyNA9B2fNGOA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrudeggdduieegucdltddurdegtdelrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhht necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhho mhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 4908F1030F; Sun, 24 Feb 2019 17:42:19 -0500 (EST) From: Thomas Monjalon To: Pablo De Lara Guarch Cc: dev@dpdk.org, tomaszx.jozwiak@intel.com Date: Sun, 24 Feb 2019 23:42:01 +0100 Message-Id: <20190224224201.26224-1-thomas@monjalon.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] app/compress-perf: call generic strlcpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 22:42:22 -0000 The call to strlcpy uses either libc, libbsd or internal rte_strlcpy. No need to call the DPDK flavor explictly. Signed-off-by: Thomas Monjalon --- app/test-compress-perf/comp_perf_options_parse.c | 4 ++-- 1 file 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 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; } -- 2.20.1