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

index 1e2d492217a00bc33f1a552e276810dc3138d686..84dc6381c719e3ce2cbb16f444eab81dd3b8aeac 100644 (file)
@@ -38,7 +38,7 @@ void sane_kds_s2000w_net_read_test()
 
 void sane_kds_s2000w_net_read_without_data_test()
 {
-       int length = 0;
+       int32_t length = 0;
        handler* h = kds_s2000w_handler_init();
        char* dataptr = malloc(sizeof(char));
 
@@ -54,7 +54,7 @@ void sane_kds_s2000w_net_read_without_data_test()
 
 void sane_kds_s2000w_net_read_empty_image_test()
 {
-       int length = 0;
+       int32_t length = 0;
        handler* h = kds_s2000w_handler_init();
        h->image->data = malloc(sizeof(char));
        h->image->size = 0;