]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
rdma: Allow external usage of compare string routine
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 31 Jan 2018 08:11:51 +0000 (10:11 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Feb 2018 01:23:52 +0000 (17:23 -0800)
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.h
rdma/utils.c

index 35506a962fd9151434949321ae951a877569033e..d2cde89513096323167b5bfdafa7c8c69f363080 100644 (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
  */
index f93f05e15b0c44e4f81e64765ec0a5b1277f25d9..9e15b7cfd9042da17967c5a7e5a228ae26e87f95 100644 (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;