rdma: Allow external usage of compare string routine

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Leon Romanovsky 2018-01-31 10:11:51 +02:00 committed by Stephen Hemminger
parent 6e0de6e886
commit 684d82094b
2 changed files with 3 additions and 1 deletions

View File

@ -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
*/

View File

@ -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;