summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index 624d7991d..9d198e25e 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -219,11 +219,10 @@ static char *table_to_string(struct cfdisk *cf, struct fdisk_table *tb)
}
}
- table = scols_new_table(NULL);
+ table = scols_new_table();
if (!table)
goto done;
- scols_table_set_max(table, 1);
- scols_table_set_tree(table, tree);
+ scols_table_enable_maxout(table, 1);
/* headers */
for (i = 0; i < cf->ncols; i++) {