From 8153729d3a59eafa7e02068f239d9a999d302b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 4 Mar 2021 10:43:00 +0100 Subject: [PATCH] Use int type to store result from isc_commandline_parse() The C standard actually doesn't define char as signed or unsigned, and it could be either according to underlying architecture. It turns out that while it's usually signed type, it isn't on arm64 where it's unsigned. isc_commandline_parse() return int, just use that instead of the char. --- bin/tools/named-journalprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tools/named-journalprint.c b/bin/tools/named-journalprint.c index 37cc0ff205..cea855e4c6 100644 --- a/bin/tools/named-journalprint.c +++ b/bin/tools/named-journalprint.c @@ -67,7 +67,7 @@ main(int argc, char **argv) { isc_result_t result; isc_log_t *lctx = NULL; uint32_t flags = 0U; - char ch; + int ch; bool downgrade = false; bool upgrade = false;