Use less ugly code to allocate buffer of SORCVBUF_SIZE.

This commit is contained in:
glebius 2015-02-13 23:57:20 +00:00
parent 375a1b0d29
commit a9731f30c8

View File

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