summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ctl.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-08-09 11:14:05 +0000
committerdes <des@FreeBSD.org>2008-08-09 11:14:05 +0000
commitc2c1c946ae25855c779b03f9b612cfa2750a94aa (patch)
treea49f25cd0b20b9dc2d2e2f419d89d33aad927f68 /sys/geom/geom_ctl.c
parent50ef01bba12b948cfb2dc282f8c080a15957acc6 (diff)
downloadFreeBSD-src-c2c1c946ae25855c779b03f9b612cfa2750a94aa.zip
FreeBSD-src-c2c1c946ae25855c779b03f9b612cfa2750a94aa.tar.gz
Add sbuf_new_auto as a shortcut for the very common case of creating a
completely dynamic sbuf. Obtained from: Varnish MFC after: 2 weeks
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r--sys/geom/geom_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
index 25b9449..55f3473 100644
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -464,7 +464,7 @@ g_ctl_ioctl_ctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct th
req = (void *)data;
req->nerror = 0;
- req->serror = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ req->serror = sbuf_new_auto();
/* It is an error if we cannot return an error text */
if (req->lerror < 2)
return (EINVAL);
OpenPOWER on IntegriCloud