mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 05:51:11 +01:00
Use less ugly code to allocate buffer of SORCVBUF_SIZE.
This commit is contained in:
parent
0de5632c91
commit
2698a8a55b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278737
@ -222,10 +222,12 @@ 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[SORCVBUF_SIZE];
|
char buf[SORCVBUF_SIZE];
|
||||||
|
struct ng_mesg *ng_mesg;
|
||||||
struct ngnf_show_header req, *resp;
|
struct ngnf_show_header req, *resp;
|
||||||
int token, nread;
|
int token, nread;
|
||||||
|
|
||||||
|
ng_mesg = (struct ng_mesg *)buf;
|
||||||
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