removed OS/2 section.

merge-requests/1/head
Gerhard Jaeger 2003-10-12 15:39:38 +00:00
rodzic 1f8c02707d
commit 6dd1661a65
1 zmienionych plików z 2 dodań i 19 usunięć

Wyświetl plik

@ -1267,22 +1267,6 @@ reader_process (Test_Device * test_device, SANE_Int fd)
return SANE_STATUS_GOOD; return SANE_STATUS_GOOD;
} }
#ifdef HAVE_OS2_H
/*
* reader thread for OS/2: need a wrapper, because threads can have
* only one parameter.
*/
static void
os2_reader_process (void *data)
{
struct Test_Device *test_device = (struct Test_Device *) data;
DBG (1, "reader_process thread started\n");
reader_process (test_device, test_device->reader_fds);
}
#else
/* /*
* this code either runs in child or thread context... * this code either runs in child or thread context...
*/ */
@ -1314,7 +1298,6 @@ static int reader_task(void *data)
DBG (2, "(child) sane_start: reader_process timed out\n"); DBG (2, "(child) sane_start: reader_process timed out\n");
return (int)status; return (int)status;
} }
#endif
static SANE_Status static SANE_Status
finish_pass (Test_Device * test_device) finish_pass (Test_Device * test_device)
@ -2497,7 +2480,7 @@ sane_start (SANE_Handle handle)
if (test_device->reader_pid < 0) if (test_device->reader_pid < 0)
{ {
DBG (1, "sane_start: fork failed (%s)\n", strerror (errno)); DBG (1, "sane_start: sanei_thread_begin failed (%s)\n", strerror(errno));
return SANE_STATUS_NO_MEM; return SANE_STATUS_NO_MEM;
} }