summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.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/lscpu.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/lscpu.c')
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 564a705b0..ad1a6b352 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -1228,7 +1228,7 @@ print_readable(struct lscpu_desc *desc, int cols[], int ncols,
int i;
char buf[BUFSIZ];
const char *data;
- struct libscols_table *table = scols_new_table(NULL);
+ struct libscols_table *table = scols_new_table();
if (!table)
err(EXIT_FAILURE, _("failed to initialize output table"));