test: fix type issue. proper type for usleep() is useconds_t.

251-scanner-canon-mf110-910-series-is-not-supported
Ralph Little 2022-06-19 16:02:18 -07:00
rodzic 1e68bfc7fe
commit 3f45d4d19e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1462,7 +1462,7 @@ reader_process (Test_Device * test_device, SANE_Int fd)
write_count = (size_t) bytes_total - (size_t) byte_count;
if (test_device->val[opt_read_delay].w == SANE_TRUE)
usleep ((__useconds_t) test_device->val[opt_read_delay_duration].w);
usleep ((useconds_t) test_device->val[opt_read_delay_duration].w);
}
bytes_written = write (fd, buffer, write_count);
if (bytes_written < 0)