summaryrefslogtreecommitdiffstats
path: root/libsmartcols/samples
diff options
context:
space:
mode:
authorKarel Zak2016-09-06 12:24:49 +0200
committerKarel Zak2016-09-06 12:24:49 +0200
commit4f07ff4041de76fa6acfefac06c500aea710f290 (patch)
tree4a7a640bcc222f9b3899b9fc2f34de31409fcfc3 /libsmartcols/samples
parentlibsmartcols: commit missing file (diff)
downloadkernel-qcow2-util-linux-4f07ff4041de76fa6acfefac06c500aea710f290.tar.gz
kernel-qcow2-util-linux-4f07ff4041de76fa6acfefac06c500aea710f290.tar.xz
kernel-qcow2-util-linux-4f07ff4041de76fa6acfefac06c500aea710f290.zip
libsmartcols: remove debuging code from sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/samples')
-rw-r--r--libsmartcols/samples/wrapnl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libsmartcols/samples/wrapnl.c b/libsmartcols/samples/wrapnl.c
index eca100f10..6de9e08a6 100644
--- a/libsmartcols/samples/wrapnl.c
+++ b/libsmartcols/samples/wrapnl.c
@@ -70,17 +70,13 @@ static struct libscols_line * add_line( struct libscols_table *tb,
if (!ln)
err(EXIT_FAILURE, "failed to create output line");
-static int x = 0;
-
if (scols_line_set_data(ln, COL_NAME, gen_text(prefix, "N", buf, 15, 0)))
goto fail;
- if (scols_line_set_data(ln, COL_DATA, gen_text(prefix, "F", buf, x % 2 ? 40 : 5, x % 2 ? 1 : 0)))
+ if (scols_line_set_data(ln, COL_DATA, gen_text(prefix, "F", buf, 40, 1)))
goto fail;
if (scols_line_set_data(ln, COL_LIKE, "1"))
goto fail;
-x++;
-
return ln;
fail:
scols_unref_table(tb);