summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorKarel Zak2016-10-26 10:13:03 +0200
committerKarel Zak2016-10-26 10:13:47 +0200
commitbae57b5a3c9fac14de4f0bb685958cb68937dc4d (patch)
tree1d2af90abf698201986ae2d893c6214de78aea93 /sys-utils/dmesg.c
parentrtcwake: add note about RTC limits (diff)
downloadkernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.tar.gz
kernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.tar.xz
kernel-qcow2-util-linux-bae57b5a3c9fac14de4f0bb685958cb68937dc4d.zip
misc: fix unsigned int usage for ctype.h functions
Reported-by: "Yuriy M. Kaminskiy" <yumkam@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 0056b2520..a06c6820d 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -641,8 +641,8 @@ static void safe_fwrite(const char *buf, size_t size, int indent, FILE *out)
i += len - 1;
#else
len = 1;
- if (!isprint((unsigned int) *p) &&
- !isspace((unsigned int) *p)) /* non-printable */
+ if (!isprint((unsigned char) *p) &&
+ !isspace((unsigned char) *p)) /* non-printable */
hex = 1;
#endif
if (hex)