From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon Romanovsky Subject: [PATCH iproute2-next v1 5/9] rdma: Allow external usage of compare string routine Date: Thu, 4 Jan 2018 09:01:46 +0200 Message-ID: <20180104070150.15625-6-leon@kernel.org> References: <20180104070150.15625-1-leon@kernel.org> Cc: RDMA mailing list , Leon Romanovsky , netdev , Stephen Hemminger , Leon Romanovsky To: Doug Ledford , Jason Gunthorpe , David Ahern Return-path: Received: from mail.kernel.org ([198.145.29.99]:56882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751922AbeADHCJ (ORCPT ); Thu, 4 Jan 2018 02:02:09 -0500 In-Reply-To: <20180104070150.15625-1-leon@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Leon Romanovsky Signed-off-by: Leon Romanovsky --- rdma/rdma.h | 2 ++ rdma/utils.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rdma/rdma.h b/rdma/rdma.h index e842d076..816c8ddd 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -84,6 +84,8 @@ void rd_free(struct rd *rd); int rd_set_arg_to_devname(struct rd *rd); int rd_argc(struct rd *rd); +int strcmpx(const char *str1, const char *str2); + /* * Device manipulation */ diff --git a/rdma/utils.c b/rdma/utils.c index 73f0d04e..e6a727e0 100644 --- a/rdma/utils.c +++ b/rdma/utils.c @@ -24,7 +24,7 @@ char *rd_argv(struct rd *rd) return *rd->argv; } -static int strcmpx(const char *str1, const char *str2) +int strcmpx(const char *str1, const char *str2) { if (strlen(str1) > strlen(str2)) return -1; -- 2.15.1