rdma: Make visible the number of arguments

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:48 +02:00 committed by Stephen Hemminger
parent 6416d1a01f
commit 5f4892e2c8
2 changed files with 2 additions and 1 deletions

View 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

View 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;
}