flowctl: Replace alloca() with an array.
Reviewed by: glebius
This commit is contained in:
parent
a57dc98e3a
commit
ec6c61d896
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278589
@ -222,12 +222,10 @@ ctl_show(int argc, char **argv)
|
|||||||
static void
|
static void
|
||||||
do_show(int version, void (*func)(struct ngnf_show_header *))
|
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;
|
struct ngnf_show_header req, *resp;
|
||||||
int token, nread;
|
int token, nread;
|
||||||
|
|
||||||
ng_mesg = alloca(SORCVBUF_SIZE);
|
|
||||||
|
|
||||||
req.version = version;
|
req.version = version;
|
||||||
req.hash_id = req.list_id = 0;
|
req.hash_id = req.list_id = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user