From 3f45d4d19e5447e32f4e707f6610b1bcc8f60d58 Mon Sep 17 00:00:00 2001 From: Ralph Little Date: Sun, 19 Jun 2022 16:02:18 -0700 Subject: [PATCH] test: fix type issue. proper type for usleep() is useconds_t. --- backend/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test.c b/backend/test.c index c6fb4e634..ea7329073 100644 --- a/backend/test.c +++ b/backend/test.c @@ -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)