aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2005-01-18 09:24:32 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2005-01-18 09:24:32 +0000
commitf0f77f69d7f74daedb26ad8ea00b4d06e43d29af (patch)
tree55229bde9ec518f1a9a919278718a1edbb478484
parente1554781bbd1910bbbcf6a5267407caa1a703865 (diff)
downloadsrc-f0f77f69d7f74daedb26ad8ea00b4d06e43d29af.tar.gz
src-f0f77f69d7f74daedb26ad8ea00b4d06e43d29af.zip
Remove redundant parameter inherited from ipacctctl.
Notes
Notes: svn path=/head/; revision=140413
-rw-r--r--usr.sbin/flowctl/flowctl.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c
index b512364ae15c..851b0afb0405 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;