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 --- sys-utils/wdctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-utils/wdctl.c') 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++) { -- cgit v1.2.3-55-g7522