diff options
| author | Karel Zak <kzak@redhat.com> | 2014-04-03 16:09:57 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-04-03 16:09:57 +0200 |
| commit | 0925a9dd6cd65feb8cb2d4d66551363f4af161e9 (patch) | |
| tree | 9981e45aee1274f959a9b32f3cbdffabc8a45d8c /sys-utils/losetup.c | |
| parent | 7fa74cb098d57a6d770e19ba361c01382c9e924c (diff) | |
| download | util-linux-0925a9dd6cd65feb8cb2d4d66551363f4af161e9.tar.gz | |
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/losetup.c')
| -rw-r--r-- | sys-utils/losetup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 58d3e08a4c..85a15ac2fb 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -298,10 +298,10 @@ static int show_table(struct loopdev_cxt *lc, struct libscols_line *ln; int i, rc = 0; - if (!(tb = scols_new_table(NULL))) + if (!(tb = scols_new_table())) err(EXIT_FAILURE, _("failed to initialize output table")); - scols_table_set_raw(tb, raw); - scols_table_set_no_headings(tb, no_headings); + scols_table_enable_raw(tb, raw); + scols_table_enable_noheadings(tb, no_headings); for (i = 0; i < ncolumns; i++) { struct colinfo *ci = get_column_info(i); |
