From b0b24b11f8072fc854dbf6ee31be0feba93beba3 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Sun, 7 Feb 2016 12:59:57 +0100 Subject: lib: rename strmode() and setmode() On BSD they are part of the standard C library. Signed-off-by: Ruediger Meier --- sys-utils/lsipc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-utils/lsipc.c') diff --git a/sys-utils/lsipc.c b/sys-utils/lsipc.c index 523859c6d..9e34e6b59 100644 --- a/sys-utils/lsipc.c +++ b/sys-utils/lsipc.c @@ -579,7 +579,7 @@ static void do_sem(int id, struct lsipc_control *ctl, struct libscols_table *tb) xasprintf(&arg, "%#o", semdsp->sem_perm.mode & 0777); else { arg = xmalloc(11); - strmode(semdsp->sem_perm.mode & 0777, arg); + xstrmode(semdsp->sem_perm.mode & 0777, arg); } rc = scols_line_refer_data(ln, n, arg); break; @@ -776,7 +776,7 @@ static void do_msg(int id, struct lsipc_control *ctl, struct libscols_table *tb) xasprintf(&arg, "%#o", msgdsp->msg_perm.mode & 0777); else { arg = xmalloc(11); - strmode(msgdsp->msg_perm.mode & 0777, arg); + xstrmode(msgdsp->msg_perm.mode & 0777, arg); rc = scols_line_refer_data(ln, n, arg); } break; @@ -928,7 +928,7 @@ static void do_shm(int id, struct lsipc_control *ctl, struct libscols_table *tb) xasprintf(&arg, "%#o", shmdsp->shm_perm.mode & 0777); else { arg = xmalloc(11); - strmode(shmdsp->shm_perm.mode & 0777, arg); + xstrmode(shmdsp->shm_perm.mode & 0777, arg); } rc = scols_line_refer_data(ln, n, arg); break; -- cgit v1.2.3-55-g7522