summaryrefslogtreecommitdiff
path: root/usr.sbin/flowctl/flowctl.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-02-11 17:46:35 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-02-11 17:46:35 +0000
commitec6c61d89638328fc20474fbf478bde612220b13 (patch)
treecded4274bbcb3dd709abdb0dd0ab8cd568c4869f /usr.sbin/flowctl/flowctl.c
parenta57dc98e3ad98d22f9f2e2b2dc46fdc05a08029f (diff)
downloadsrc-test2-ec6c61d89638328fc20474fbf478bde612220b13.tar.gz
src-test2-ec6c61d89638328fc20474fbf478bde612220b13.zip
Notes
Diffstat (limited to 'usr.sbin/flowctl/flowctl.c')
-rw-r--r--usr.sbin/flowctl/flowctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c
index 47ddadfdaa20..531b98869d95 100644
--- a/usr.sbin/flowctl/flowctl.c
+++ b/usr.sbin/flowctl/flowctl.c
@@ -222,12 +222,10 @@ ctl_show(int argc, char **argv)
static void
do_show(int version, void (*func)(struct ngnf_show_header *))
{
- struct ng_mesg *ng_mesg;
+ struct ng_mesg ng_mesg[SORCVBUF_SIZE];
struct ngnf_show_header req, *resp;
int token, nread;
- ng_mesg = alloca(SORCVBUF_SIZE);
-
req.version = version;
req.hash_id = req.list_id = 0;