From 8fe769068e760d7359749f9d32a1cfa83f3beada Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 8 Feb 2025 20:08:29 +0100 Subject: [PATCH] change opt tests with stdint --- tests/kds_s2000w_net_get_opt_tests.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/kds_s2000w_net_get_opt_tests.c b/tests/kds_s2000w_net_get_opt_tests.c index b4a3e56..41dc5f0 100644 --- a/tests/kds_s2000w_net_get_opt_tests.c +++ b/tests/kds_s2000w_net_get_opt_tests.c @@ -18,7 +18,7 @@ void sane_kds_s2000w_net_control_get_option_zero_test(void** state) expect_function_call(__wrap_kds_s2000w_client_get_option); expect_function_call(__wrap_kds_s2000w_client_set_option); handler* h = kds_s2000w_handler_init(); - int value = 0; + int32_t value = 0; sane_kds_s2000w_net_control_option(h, 0, SANE_ACTION_GET_VALUE, &value, NULL); @@ -64,7 +64,7 @@ void sane_kds_s2000w_net_control_get_option_four_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = 0; + int32_t value = 0; sane_kds_s2000w_net_control_option(h, 4, SANE_ACTION_GET_VALUE, &value, NULL); @@ -94,7 +94,7 @@ void sane_kds_s2000w_net_control_get_option_seven_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 7, SANE_ACTION_GET_VALUE, &value, NULL); @@ -124,7 +124,7 @@ void sane_kds_s2000w_net_control_get_option_nine_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 9, SANE_ACTION_GET_VALUE, &value, NULL); @@ -169,7 +169,7 @@ void sane_kds_s2000w_net_control_get_option_twelve_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 12, SANE_ACTION_GET_VALUE, &value, NULL); @@ -184,7 +184,7 @@ void sane_kds_s2000w_net_control_get_option_thirdteen_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 13, SANE_ACTION_GET_VALUE, &value, NULL); @@ -199,7 +199,7 @@ void sane_kds_s2000w_net_control_get_option_fourteen_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 14, SANE_ACTION_GET_VALUE, &value, NULL); @@ -214,7 +214,7 @@ void sane_kds_s2000w_net_control_get_option_fifteen_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 15, SANE_ACTION_GET_VALUE, &value, NULL); @@ -244,7 +244,7 @@ void sane_kds_s2000w_net_control_get_option_seventeen_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 17, SANE_ACTION_GET_VALUE, &value, NULL); @@ -274,7 +274,7 @@ void sane_kds_s2000w_net_control_get_option_nineteen_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 19, SANE_ACTION_GET_VALUE, &value, NULL); @@ -289,7 +289,7 @@ void sane_kds_s2000w_net_control_get_option_twenty_test(void** state) handler* h = kds_s2000w_handler_init(); response* resp = (response*) *state; h->current_scanner_config = json_tokener_parse(resp->data); - int value = -1; + int32_t value = -1; sane_kds_s2000w_net_control_option(h, 20, SANE_ACTION_GET_VALUE, &value, NULL); -- 2.39.5