summaryrefslogtreecommitdiff
path: root/tools/vsh-table.c
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2019-11-18 15:14:47 +0100
committerPavel Hrdina <phrdina@redhat.com>2019-12-10 13:49:24 +0100
commit04d267d3471955a437fd91a882e1194a9fd794ff (patch)
treedb4eb77dbb75e4f8c94952adf8b3a22e796966c5 /tools/vsh-table.c
parentc1024416f4467884ad934587a39d1100172f79ef (diff)
downloadlibvirt-04d267d3471955a437fd91a882e1194a9fd794ff.tar.gz
use g_ascii_isprint instead of c_isprint from gnulib
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tools/vsh-table.c')
-rw-r--r--tools/vsh-table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/vsh-table.c b/tools/vsh-table.c
index 28072c9719..a2365b2c32 100644
--- a/tools/vsh-table.c
+++ b/tools/vsh-table.c
@@ -25,7 +25,6 @@
#include <stddef.h>
#include <wchar.h>
#include <wctype.h>
-#include "c-ctype.h"
#include "viralloc.h"
#include "virbuffer.h"
@@ -244,7 +243,7 @@ vshTableSafeEncode(const char *s, size_t *width)
* Not valid multibyte sequence -- maybe it's
* printable char according to the current locales.
*/
- if (!c_isprint(*p)) {
+ if (!g_ascii_isprint(*p)) {
g_snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p);
buf += HEX_ENCODE_LENGTH;
*width += HEX_ENCODE_LENGTH;