summaryrefslogtreecommitdiffstats
path: root/sbin
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 /sbin
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 'sbin')
-rw-r--r--sbin/ifconfig/regdomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/regdomain.c b/sbin/ifconfig/regdomain.c
index 0956507..c9a7921 100644
--- a/sbin/ifconfig/regdomain.c
+++ b/sbin/ifconfig/regdomain.c
@@ -78,7 +78,7 @@ start_element(void *data, const char *name, const char **attr)
/* XXX force parser to abort */
return;
}
- mt->sbuf[mt->level] = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ mt->sbuf[mt->level] = sbuf_new_auto();
id = ref = mode = NULL;
for (i = 0; attr[i] != NULL; i += 2) {
if (iseq(attr[i], "id")) {
OpenPOWER on IntegriCloud