From a9731f30c8eef0c07813f21884d05d8f12dc1dd9 Mon Sep 17 00:00:00 2001 From: glebius Date: Fri, 13 Feb 2015 23:57:20 +0000 Subject: Use less ugly code to allocate buffer of SORCVBUF_SIZE. --- usr.sbin/flowctl/flowctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/flowctl') diff --git a/usr.sbin/flowctl/flowctl.c b/usr.sbin/flowctl/flowctl.c index 531b988..0c7539a 100644 --- a/usr.sbin/flowctl/flowctl.c +++ b/usr.sbin/flowctl/flowctl.c @@ -222,10 +222,12 @@ ctl_show(int argc, char **argv) static void do_show(int version, void (*func)(struct ngnf_show_header *)) { - struct ng_mesg ng_mesg[SORCVBUF_SIZE]; + char buf[SORCVBUF_SIZE]; + struct ng_mesg *ng_mesg; struct ngnf_show_header req, *resp; int token, nread; + ng_mesg = (struct ng_mesg *)buf; req.version = version; req.hash_id = req.list_id = 0; -- cgit v1.1