]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change opt tests with stdint
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 19:08:29 +0000 (20:08 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 19:08:29 +0000 (20:08 +0100)
tests/kds_s2000w_net_get_opt_tests.c

index b4a3e5620cae3942f671f7ae483f40d56cad4cfd..41dc5f081816d2e769e5bf57f7ae1b5f8274e1cb 100644 (file)
@@ -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);