From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH iproute2 12/22] tipc: make cmd_find static Date: Thu, 15 Nov 2018 14:36:30 -0800 Message-ID: <20181115223640.411-13-stephen@networkplumber.org> References: <20181115223640.411-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:38137 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388882AbeKPIqh (ORCPT ); Fri, 16 Nov 2018 03:46:37 -0500 Received: by mail-pg1-f196.google.com with SMTP id f8-v6so9648525pgq.5 for ; Thu, 15 Nov 2018 14:36:54 -0800 (PST) In-Reply-To: <20181115223640.411-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: Function only used in one file. Signed-off-by: Stephen Hemminger --- tipc/cmdl.c | 2 +- tipc/cmdl.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tipc/cmdl.c b/tipc/cmdl.c index 4a2f4fd92f48..f2f259cc5320 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 d37239f85690..03db359956e6 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 -- 2.17.1