From bfa8415ea3f5a0b055ef383863e2711b95b04ec8 Mon Sep 17 00:00:00 2001 From: pkubaj Date: Wed, 30 Oct 2019 15:34:58 +0000 Subject: [PATCH] Fix build on ARM, PPC Those architectures use unsigned char by default, and command variable is later compared to -1. --- src/tests/p11test/p11test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/p11test/p11test.c b/src/tests/p11test/p11test.c index 979c0e38..feecf6fb 100644 --- a/src/tests/p11test/p11test.c +++ b/src/tests/p11test/p11test.c @@ -49,7 +49,7 @@ void display_usage() { } int main(int argc, char** argv) { - char command; + signed char command; const struct CMUnitTest readonly_tests_without_initialization[] = { /* Test card events on slot */ cmocka_unit_test_setup_teardown(wait_test,