summaryrefslogtreecommitdiffstats
path: root/libsmartcols/samples/tree.c
diff options
context:
space:
mode:
authorRuediger Meier2016-02-07 12:59:57 +0100
committerRuediger Meier2016-02-18 12:53:48 +0100
commitb0b24b11f8072fc854dbf6ee31be0feba93beba3 (patch)
treedd77194b56ba820ba7e14c87f0f66c9ed6c82346 /libsmartcols/samples/tree.c
parenttests: fix ts_option helpers (diff)
downloadkernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.tar.gz
kernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.tar.xz
kernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.zip
lib: rename strmode() and setmode()
On BSD they are part of the standard C library. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libsmartcols/samples/tree.c')
-rw-r--r--libsmartcols/samples/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/samples/tree.c b/libsmartcols/samples/tree.c
index 7f41f9eb4..52be7fbd5 100644
--- a/libsmartcols/samples/tree.c
+++ b/libsmartcols/samples/tree.c
@@ -59,7 +59,7 @@ static int add_line_from_stat(struct libscols_table *tb,
err(EXIT_FAILURE, "failed to create output line");
/* MODE; local buffer, use scols_line_set_data() that calls strdup() */
- strmode(mode, modbuf);
+ xstrmode(mode, modbuf);
if (scols_line_set_data(ln, COL_MODE, modbuf))
goto fail;