From 12097e7299540736faf1f3437f00cd9956684b4e Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 18 Jan 2005 09:24:32 +0000 Subject: Remove redundant parameter inherited from ipacctctl. --- usr.sbin/flowctl/flowctl.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'usr.sbin/flowctl') diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c index b512364..851b0af 100644 --- a/usr.sbin/flowctl/flowctl.c +++ b/usr.sbin/flowctl/flowctl.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2004 Gleb Smirnoff + * Copyright (c) 2004, 2005 Gleb Smirnoff * Copyright (c) 2001-2003 Roman V. Palagin * All rights reserved. * @@ -58,19 +58,18 @@ static const char rcs_id[] = int main(int, char **); static int flow_cache_print(struct ngnf_flows *recs); -static int ctl_show(int, int, char **); +static int ctl_show(int, char **); static void help(void); static void execute_command(int, char **); struct ip_ctl_cmd { char *cmd_name; - int cmd_code; - int (*cmd_func)(int code, int argc, char **argv); + int (*cmd_func)(int argc, char **argv); }; struct ip_ctl_cmd cmds[] = { - {"show", NGM_NETFLOW_SHOW, ctl_show}, - {NULL, 0, NULL}, + {"show", ctl_show}, + {NULL, NULL}, }; int cs; @@ -146,11 +145,11 @@ execute_command(int argc, char **argv) errx(1, "bad command: %s", argv[0]); argc--; argv++; - (*cmds[cindex].cmd_func)(cmds[cindex].cmd_code, argc, argv); + (*cmds[cindex].cmd_func)(argc, argv); } static int -ctl_show(int code, int argc, char **argv) +ctl_show(int argc, char **argv) { struct ng_mesg *ng_mesg; struct ngnf_flows *data; -- cgit v1.1