diff options
author | glebius <glebius@FreeBSD.org> | 2005-01-18 09:24:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-01-18 09:24:32 +0000 |
commit | 12097e7299540736faf1f3437f00cd9956684b4e (patch) | |
tree | 55229bde9ec518f1a9a919278718a1edbb478484 /usr.sbin/flowctl | |
parent | 0e3cb75d08cd70ca2831bfb52d4a0a6ae23604f2 (diff) | |
download | FreeBSD-src-12097e7299540736faf1f3437f00cd9956684b4e.zip FreeBSD-src-12097e7299540736faf1f3437f00cd9956684b4e.tar.gz |
Remove redundant parameter inherited from ipacctctl.
Diffstat (limited to 'usr.sbin/flowctl')
-rw-r--r-- | usr.sbin/flowctl/flowctl.c | 15 |
1 files changed, 7 insertions, 8 deletions
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 <glebius@FreeBSD.org> + * Copyright (c) 2004, 2005 Gleb Smirnoff <glebius@FreeBSD.org> * Copyright (c) 2001-2003 Roman V. Palagin <romanp@unshadow.net> * 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; |