summaryrefslogtreecommitdiffstats
path: root/sys/geom/concat/g_concat.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/concat/g_concat.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/concat/g_concat.c')
-rw-r--r--sys/geom/concat/g_concat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index 9dae373..ad56f43 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -748,7 +748,7 @@ g_concat_ctl_create(struct gctl_req *req, struct g_class *mp)
}
sc = gp->softc;
- sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ sb = sbuf_new_auto();
sbuf_printf(sb, "Can't attach disk(s) to %s:", gp->name);
for (attached = 0, no = 1; no < *nargs; no++) {
snprintf(param, sizeof(param), "arg%u", no);
OpenPOWER on IntegriCloud