fd_util: fixed WIN32 versions of pipe()
Use the correct parameter name.
This commit is contained in:
parent
02526eda86
commit
163e05f5a0
@ -124,7 +124,7 @@ int
|
|||||||
pipe_cloexec(int fd[2])
|
pipe_cloexec(int fd[2])
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
return _pipe(event_pipe, 512, _O_BINARY);
|
return _pipe(fd, 512, _O_BINARY);
|
||||||
#else
|
#else
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ int
|
|||||||
pipe_cloexec_nonblock(int fd[2])
|
pipe_cloexec_nonblock(int fd[2])
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
return _pipe(event_pipe, 512, _O_BINARY);
|
return _pipe(fd, 512, _O_BINARY);
|
||||||
#else
|
#else
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user