summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.c
diff options
context:
space:
mode:
authorRosen Penev2019-08-08 21:12:55 +0200
committerRosen Penev2019-08-08 21:12:55 +0200
commit76b680b1a9deeb83c310115fd96fd6f51d37cd53 (patch)
tree919d26df133940b7863e1072e2539da12bf4a9f3 /term-utils/wall.c
parenttests: update fdisk output (diff)
downloadkernel-qcow2-util-linux-76b680b1a9deeb83c310115fd96fd6f51d37cd53.tar.gz
kernel-qcow2-util-linux-76b680b1a9deeb83c310115fd96fd6f51d37cd53.tar.xz
kernel-qcow2-util-linux-76b680b1a9deeb83c310115fd96fd6f51d37cd53.zip
Remove isascii usage
There is a c_isascii function that can be used. isascii is deprecated and not available with some libcs like uClibc-ng where it can be compile time disabled.
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r--term-utils/wall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index c3e89bab9..bf92fe1b7 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -68,6 +68,7 @@
#include "pathnames.h"
#include "carefulputc.h"
#include "c.h"
+#include "cctype.h"
#include "fileutils.h"
#include "closestream.h"
@@ -324,7 +325,7 @@ static void buf_putc_careful(struct buffer *bs, int c)
if (isprint(c) || c == '\a' || c == '\t' || c == '\r' || c == '\n') {
buf_enlarge(bs, 1);
bs->data[bs->used++] = c;
- } else if (!isascii(c))
+ } else if (!c_isascii(c))
buf_printf(bs, "\\%3o", (unsigned char)c);
else {
char tmp[] = { '^', c ^ 0x40, '\0' };