From b3e9218b23557f7ca787dc0b08c150ee7a0a880e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 7 Jul 2023 09:46:04 +0200 Subject: Fix Cygwin build warnings --- xB.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xB.c') diff --git a/xB.c b/xB.c index 3713724..6797012 100644 --- a/xB.c +++ b/xB.c @@ -1009,7 +1009,7 @@ is_valid_plugin_name (const char *name) if (!*name) return false; for (const char *p = name; *p; p++) - if (!isgraph (*p) || *p == '/') + if (!isgraph ((uint8_t) *p) || *p == '/') return false; return true; } @@ -1213,7 +1213,7 @@ parse_bot_command (const char *s, const char *command, const char **following) s += command_len; // Expect a word boundary, so that we don't respond to invalid things - if (isalnum (*s)) + if (isalnum ((uint8_t) *s)) return false; // Ignore any initial spaces; the rest is the command's argument -- cgit v1.2.3