Fix some more mingw errors on iofunc.c

pull/948/head
Mike Black W9MDB 2022-01-31 07:42:04 -06:00
rodzic 6e6d22ae36
commit 2e218c56b6
1 zmienionych plików z 3 dodań i 5 usunięć

Wyświetl plik

@ -85,25 +85,23 @@ static int create_sync_data_pipe(hamlib_port_t *p)
{ {
int status; int status;
ENTERFUNC;
status = async_pipe_create(&p->sync_data_pipe, PIPE_BUFFER_SIZE_DEFAULT, p->timeout); status = async_pipe_create(&p->sync_data_pipe, PIPE_BUFFER_SIZE_DEFAULT, p->timeout);
if (status < 0) if (status < 0)
{ {
close_sync_data_pipe(p); close_sync_data_pipe(p);
RETURNFUNC(-RIG_EINTERNAL); return(-RIG_EINTERNAL);
} }
status = async_pipe_create(&p->sync_data_error_pipe, PIPE_BUFFER_SIZE_DEFAULT, p->timeout); status = async_pipe_create(&p->sync_data_error_pipe, PIPE_BUFFER_SIZE_DEFAULT, p->timeout);
if (status < 0) if (status < 0)
{ {
close_sync_data_pipe(p); close_sync_data_pipe(p);
RETURNFUNC(-RIG_EINTERNAL); return(-RIG_EINTERNAL);
} }
rig_debug(RIG_DEBUG_VERBOSE, "%s: created data pipe for synchronous transactions\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: created data pipe for synchronous transactions\n", __func__);
RETURNFUNC(RIG_OK); return(RIG_OK);
} }
#else #else