diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-08-09 11:14:05 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-08-09 11:14:05 +0000 |
commit | 2616144e4345e4cdab56fd7c673fbb69074a9ce2 (patch) | |
tree | a49f25cd0b20b9dc2d2e2f419d89d33aad927f68 /sbin/ifconfig/regdomain.c | |
parent | 546d78908b9f0f53f066f5b1c63a7fd1759c27a9 (diff) | |
download | src-2616144e4345e4cdab56fd7c673fbb69074a9ce2.tar.gz src-2616144e4345e4cdab56fd7c673fbb69074a9ce2.zip |
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
Notes
Notes:
svn path=/head/; revision=181463
Diffstat (limited to 'sbin/ifconfig/regdomain.c')
-rw-r--r-- | sbin/ifconfig/regdomain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/regdomain.c b/sbin/ifconfig/regdomain.c index 095650709daf..c9a7921f6473 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")) { |