From: Leon Romanovsky Date: Wed, 31 Jan 2018 08:11:51 +0000 (+0200) Subject: rdma: Allow external usage of compare string routine X-Git-Tag: v4.16.0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=684d82094b0e0788c5e7f0eee07d8d51375d6878;p=thirdparty%2Fiproute2.git rdma: Allow external usage of compare string routine Signed-off-by: Leon Romanovsky Signed-off-by: Stephen Hemminger --- diff --git a/rdma/rdma.h b/rdma/rdma.h index 35506a962..d2cde8951 100644 --- a/rdma/rdma.h +++ b/rdma/rdma.h @@ -90,6 +90,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 f93f05e15..9e15b7cfd 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;