kopia lustrzana https://github.com/Hamlib/Hamlib
Fix some more mingw errors on iofunc.c
rodzic
6e6d22ae36
commit
2e218c56b6
|
@ -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
|
||||||
|
|
Ładowanie…
Reference in New Issue