summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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