]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use int type to store result from isc_commandline_parse()
authorOndřej Surý <ondrej@sury.org>
Thu, 4 Mar 2021 09:43:00 +0000 (10:43 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 4 Mar 2021 10:21:26 +0000 (11:21 +0100)
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.

(cherry picked from commit 8153729d3a59eafa7e02068f239d9a999d302b99)

bin/tools/named-journalprint.c

index 37cc0ff20540de70ca948f6b317fc0aef6d1d25c..cea855e4c6700a3808b866c9c8959d770ca26aa1 100644 (file)
@@ -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;