aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;