From 2616144e4345e4cdab56fd7c673fbb69074a9ce2 Mon Sep 17 00:00:00 2001 From: Dag-Erling Smørgrav Date: Sat, 9 Aug 2008 11:14:05 +0000 Subject: 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 --- sys/dev/acpi_support/acpi_asus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/acpi_support') diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c index 3730fe8986a6..f6b33f439a02 100644 --- a/sys/dev/acpi_support/acpi_asus.c +++ b/sys/dev/acpi_support/acpi_asus.c @@ -565,7 +565,7 @@ acpi_asus_probe(device_t dev) } } - sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND); + sb = sbuf_new_auto(); if (sb == NULL) return (ENOMEM); -- cgit v1.3