From 0925a9dd6cd65feb8cb2d4d66551363f4af161e9 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 3 Apr 2014 16:09:57 +0200 Subject: libsmartcols: clean up flags usage * rename flags functions to scols_table_enable_* * rename *_no_foo() functions to _nofoo() * output formats are mutually exclusive, so don't use flags there * don't assume symbols in scols_new_table(), use scols_table_set_symbols() Signed-off-by: Karel Zak --- disk-utils/cfdisk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'disk-utils/cfdisk.c') 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++) { -- cgit v1.2.3-55-g7522