summaryrefslogtreecommitdiffstats
path: root/sys-utils/wdctl.c
diff options
context:
space:
mode:
authorKarel Zak2014-04-03 16:09:57 +0200
committerKarel Zak2014-04-03 16:09:57 +0200
commit0925a9dd6cd65feb8cb2d4d66551363f4af161e9 (patch)
tree9981e45aee1274f959a9b32f3cbdffabc8a45d8c /sys-utils/wdctl.c
parentfdisk: print table header as bold (diff)
downloadkernel-qcow2-util-linux-0925a9dd6cd65feb8cb2d4d66551363f4af161e9.tar.gz
kernel-qcow2-util-linux-0925a9dd6cd65feb8cb2d4d66551363f4af161e9.tar.xz
kernel-qcow2-util-linux-0925a9dd6cd65feb8cb2d4d66551363f4af161e9.zip
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 <kzak@redhat.com>
Diffstat (limited to 'sys-utils/wdctl.c')
-rw-r--r--sys-utils/wdctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c
index 68ecf0d29..d63a110e3 100644
--- a/sys-utils/wdctl.c
+++ b/sys-utils/wdctl.c
@@ -251,13 +251,13 @@ static int show_flags(struct wdinfo *wd, uint32_t wanted)
uint32_t flags;
/* create output table */
- table = scols_new_table(NULL);
+ table = scols_new_table();
if (!table) {
warn(_("failed to initialize output table"));
return -1;
}
- scols_table_set_raw(table, raw);
- scols_table_set_no_headings(table, no_headings);
+ scols_table_enable_raw(table, raw);
+ scols_table_enable_noheadings(table, no_headings);
/* define columns */
for (i = 0; i < (size_t) ncolumns; i++) {