]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
rdma: Make visible the number of arguments
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 31 Jan 2018 08:11:48 +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 cbd9aa89f537ef0228b47682fb770e8d31be040a..1b66ae048fad2a2c4b9affa4cfd4896853c04276 100644 (file)
@@ -74,6 +74,7 @@ int rd_exec_cmd(struct rd *rd, const struct rd_cmd *c, const char *str);
 int rd_exec_dev(struct rd *rd, int (*cb)(struct rd *rd));
 int rd_exec_link(struct rd *rd, int (*cb)(struct rd *rd), bool strict_port);
 void rd_free(struct rd *rd);
+int rd_argc(struct rd *rd);
 
 /*
  * Device manipulation
index b9c668a3886031275d6e4850bb80df54d0ec02c6..af2b374deb12e40b3a0098b08d1bdae0cca71deb 100644 (file)
@@ -12,7 +12,7 @@
 #include "rdma.h"
 #include <ctype.h>
 
-static int rd_argc(struct rd *rd)
+int rd_argc(struct rd *rd)
 {
        return rd->argc;
 }