Commit 163e05f5 authored by Max Kellermann's avatar Max Kellermann

fd_util: fixed WIN32 versions of pipe()

Use the correct parameter name.
parent 02526eda
......@@ -124,7 +124,7 @@ int
pipe_cloexec(int fd[2])
{
#ifdef WIN32
return _pipe(event_pipe, 512, _O_BINARY);
return _pipe(fd, 512, _O_BINARY);
#else
int ret;
......@@ -148,7 +148,7 @@ int
pipe_cloexec_nonblock(int fd[2])
{
#ifdef WIN32
return _pipe(event_pipe, 512, _O_BINARY);
return _pipe(fd, 512, _O_BINARY);
#else
int ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment