summaryrefslogtreecommitdiffstats
path: root/sys-utils/prlimit.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/prlimit.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/prlimit.c')
-rw-r--r--sys-utils/prlimit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index 9b1b85f65..d37ec651e 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -288,12 +288,12 @@ static int show_limits(struct list_head *lims)
struct list_head *p, *pnext;
struct libscols_table *table;
- table = scols_new_table(NULL);
+ table = scols_new_table();
if (!table)
err(EXIT_FAILURE, _("failed to initialize output table"));
- 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);
for (i = 0; i < ncolumns; i++) {
struct colinfo *col = get_column_info(i);