tipc: make cmd_find static
Function only used in one file. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
babc56b68c
commit
f63c3f9a81
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include "cmdl.h"
|
#include "cmdl.h"
|
||||||
|
|
||||||
const struct cmd *find_cmd(const struct cmd *cmds, char *str)
|
static const struct cmd *find_cmd(const struct cmd *cmds, char *str)
|
||||||
{
|
{
|
||||||
const struct cmd *c;
|
const struct cmd *c;
|
||||||
const struct cmd *match = NULL;
|
const struct cmd *match = NULL;
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,4 @@ char *shift_cmdl(struct cmdl *cmdl);
|
||||||
int run_cmd(struct nlmsghdr *nlh, const struct cmd *caller,
|
int run_cmd(struct nlmsghdr *nlh, const struct cmd *caller,
|
||||||
const struct cmd *cmds, struct cmdl *cmdl, void *data);
|
const struct cmd *cmds, struct cmdl *cmdl, void *data);
|
||||||
|
|
||||||
const struct cmd *find_cmd(const struct cmd *cmds, char *str);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue