]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/cfdisk.c
libsmartcols: clean up flags usage
[thirdparty/util-linux.git] / disk-utils / cfdisk.c
index 624d7991d18e55b8cf27d30bccf8de834955440a..9d198e25ec14d870c5b6ac0b2253d7db1cff5da7 100644 (file)
@@ -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++) {