flowctl: Replace alloca() with an array.

Reviewed by:	glebius
This commit is contained in:
Pedro F. Giffuni 2015-02-11 17:46:35 +00:00
parent a57dc98e3a
commit ec6c61d896
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278589

View File

@ -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;