summaryrefslogtreecommitdiffstats
path: root/tools/regression
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-05 13:11:01 +0000
committerphk <phk@FreeBSD.org>2002-10-05 13:11:01 +0000
commitfaad129ed6caf62350e5d3c92678a7529f6335bf (patch)
treeca3d5caaeb6ab8a7794709edbea4b5f641b37cc2 /tools/regression
parent18d9db4bb5e43510810dd40acde3d990da838bf3 (diff)
downloadFreeBSD-src-faad129ed6caf62350e5d3c92678a7529f6335bf.zip
FreeBSD-src-faad129ed6caf62350e5d3c92678a7529f6335bf.tar.gz
Pass sbuf to the kernel routines to match new kernel code.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'tools/regression')
-rw-r--r--tools/regression/geom/geom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/regression/geom/geom.c b/tools/regression/geom/geom.c
index 1873e06..a09cb9a 100644
--- a/tools/regression/geom/geom.c
+++ b/tools/regression/geom/geom.c
@@ -60,7 +60,9 @@ conff(char *file)
f = fopen(s, "w");
if (f == NULL)
err(1, s);
- sb = g_conf();
+ sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ sbuf_clear(sb);
+ g_confxml(sb);
fputs(sbuf_data(sb), f);
fclose(f);
free(s);
@@ -181,7 +183,9 @@ sdumpf(char *file)
f = fopen(s, "w");
if (f == NULL)
err(1, s);
- sb = g_confdot();
+ sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
+ sbuf_clear(sb);
+ g_confdot(sb);
fprintf(f, "%s", sbuf_data(sb));
fclose(f);
free(s);
OpenPOWER on IntegriCloud