diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2018-11-15 14:36:30 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2018-11-19 11:42:44 -0800 |
commit | f63c3f9a81a967c8c2cceb414ae03206f0a1e934 (patch) | |
tree | 34bf106c61481e51a9d5d09b976f9dda41af0caf /tipc | |
parent | babc56b68c4f8067070c55fe2d87d05daf5cf853 (diff) |
tipc: make cmd_find static
Function only used in one file.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'tipc')
-rw-r--r-- | tipc/cmdl.c | 2 | ||||
-rw-r--r-- | tipc/cmdl.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tipc/cmdl.c b/tipc/cmdl.c index 4a2f4fd9..f2f259cc 100644 --- a/tipc/cmdl.c +++ b/tipc/cmdl.c @@ -17,7 +17,7 @@ #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 *match = NULL; diff --git a/tipc/cmdl.h b/tipc/cmdl.h index d37239f8..03db3599 100644 --- a/tipc/cmdl.h +++ b/tipc/cmdl.h @@ -54,6 +54,4 @@ char *shift_cmdl(struct cmdl *cmdl); int run_cmd(struct nlmsghdr *nlh, const struct cmd *caller, const struct cmd *cmds, struct cmdl *cmdl, void *data); -const struct cmd *find_cmd(const struct cmd *cmds, char *str); - #endif |