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:
parent
6e0de6e886
commit
684d82094b
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue