]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change for with uint32_t
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 19:14:33 +0000 (20:14 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 19:14:33 +0000 (20:14 +0100)
src/kds_s2000w_net.c
tests/kds_s2000w_image_converter_tests.c
tests/kds_s2000w_net_read_tests.c
tests/kds_s2000w_net_tests.c
tests/kds_s2000w_net_tests_run.c

index ba94ddf51c4ff89a3961ec5c3ae1ad92ac9c3f52..c77d228d83883b45967a746d691cb7550f4910b7 100644 (file)
@@ -138,7 +138,7 @@ SANE_Status sane_kds_s2000w_net_start(SANE_Handle handle)
                kds_s2000w_handler_start_scan(h);
        }
 
-       for (int i = 0; i < 30; i++) {
+       for (uint32_t i = 0; i < 30; i++) {
                kds_s2000w_handler_get_current_scan_status(h);
 
                if (h->current_scan_status->available_images > 0)
index 855b83749ae9f52f2e541a21393d4237fb350997..d0c73d686d91ba558c852a01d2c3b61ba8f058c4 100644 (file)
@@ -19,7 +19,7 @@ void get_metadata_from_image_test()
        image_data[8] = 0x35;
        image_data[9] = 0x35;
        image_data[10] = 0x0a;
-       for (int i = 11; i < 17; i++) {
+       for (uint32_t i = 11; i < 17; i++) {
                image_data[i] = 0xff;
        }
        image_metadata* mdata = malloc(sizeof(image_metadata));
index 84dc6381c719e3ce2cbb16f444eab81dd3b8aeac..cf3c9bc38f3cdc495d7def046e64208ec71b1b2f 100644 (file)
@@ -12,7 +12,7 @@ void sane_kds_s2000w_net_read_test()
        h->image->size = 65536;
        h->image->data = malloc(sizeof(char) * 65536);
        char* imagedata = (char*) h->image->data;
-       for (int i = 0; i < 65536; i++) {
+       for (uint32_t i = 0; i < 65536; i++) {
                imagedata[i] = 0xff;
        }
 
@@ -80,7 +80,7 @@ void sane_kds_s2000w_net_read_bytes_per_line_bigger_test()
        h->image->size = 95003;
        h->image->data = malloc(sizeof(char) * 95003);
        char* image = (char*) h->image->data;
-       for (int i = 0; i < 3; i++) {
+       for (uint32_t i = 0; i < 3; i++) {
                image[i] = 0x0a;
        }
        image[3] = 0xff;
index 0dd8636aff46b791226f2ce6d04f08c26e7ce1a8..e5ce28cf3792c2a12303119b47e251ebea52e284 100644 (file)
@@ -66,7 +66,7 @@ void sane_kds_s2000w_net_get_parameter_color_test()
        image_data[8] = 0x35;
        image_data[9] = 0x35;
        image_data[10] = 0x0a;
-       for (int i = 11; i < 17; i++) {
+       for (uint32_t i = 11; i < 17; i++) {
                image_data[i] = 0xff;
        }
 
@@ -104,7 +104,7 @@ void sane_kds_s2000w_net_get_parameter_bw_test()
        image_data[4] = 0x20;
        image_data[5] = 0x31;
        image_data[6] = 0x0a;
-       for (int i = 7; i < 17; i++) {
+       for (uint32_t i = 7; i < 17; i++) {
                image_data[i] = 0xff;
        }
 
index e47e4196a9e20e4b6551c22f0beedeffb1a4c0a0..200ea6f8c58a7a2bca1424633882541cb1d00328 100644 (file)
@@ -37,7 +37,7 @@ int setup(void** state)
        image_data[8] = 0x35;
        image_data[9] = 0x35;
        image_data[10] = 0x0a;
-       for (int i = 11; i < 17; i++) {
+       for (uint32_t i = 11; i < 17; i++) {
                image_data[i] = 0xff;
        }
        response_list[3] = NULL;
@@ -49,7 +49,7 @@ int setup(void** state)
 int teardown(void** state)
 {
        response** respons_list = (response**) *state;
-       for (int i = 0; respons_list[i] != NULL; i++) {
+       for (uint32_t i = 0; respons_list[i] != NULL; i++) {
                kds_s2000w_client_response_free(respons_list[i]);
                respons_list[i] = NULL;
        }