From: Stephen Hemminger Date: Thu, 15 Nov 2018 22:36:30 +0000 (-0800) Subject: tipc: make cmd_find static X-Git-Tag: v4.20.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63c3f9a81a967c8c2cceb414ae03206f0a1e934;p=thirdparty%2Fiproute2.git tipc: make cmd_find static Function only used in one file. Signed-off-by: Stephen Hemminger --- diff --git a/tipc/cmdl.c b/tipc/cmdl.c index 4a2f4fd92..f2f259cc5 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 d37239f85..03db35995 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