svn commit: r278589 - head/usr.sbin/flowctl
Pedro F. Giffuni
pfg at FreeBSD.org
Wed Feb 11 17:46:36 UTC 2015
Author: pfg
Date: Wed Feb 11 17:46:35 2015
New Revision: 278589
URL: https://svnweb.freebsd.org/changeset/base/278589
Log:
flowctl: Replace alloca() with an array.
Reviewed by: glebius
Modified:
head/usr.sbin/flowctl/flowctl.c
Modified: head/usr.sbin/flowctl/flowctl.c
==============================================================================
--- head/usr.sbin/flowctl/flowctl.c Wed Feb 11 17:41:23 2015 (r278588)
+++ head/usr.sbin/flowctl/flowctl.c Wed Feb 11 17:46:35 2015 (r278589)
@@ -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;
More information about the svn-src-all
mailing list