diff options
author | Yves-Alexis Perez <corsac@corsac.net> | 2012-06-28 21:16:07 +0200 |
---|---|---|
committer | Yves-Alexis Perez <corsac@corsac.net> | 2012-06-28 21:16:07 +0200 |
commit | b34738ed08c2227300d554b139e2495ca5da97d6 (patch) | |
tree | 62f33b52820f2e49f0e53c0f8c636312037c8054 /src/pluto/event_queue.c | |
parent | 0a9d51a49042a68daa15b0c74a2b7f152f52606b (diff) | |
download | vyos-strongswan-b34738ed08c2227300d554b139e2495ca5da97d6.tar.gz vyos-strongswan-b34738ed08c2227300d554b139e2495ca5da97d6.zip |
Imported Upstream version 4.6.4
Diffstat (limited to 'src/pluto/event_queue.c')
-rw-r--r-- | src/pluto/event_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/event_queue.c b/src/pluto/event_queue.c index 55d064f26..602a013ee 100644 --- a/src/pluto/event_queue.c +++ b/src/pluto/event_queue.c @@ -147,13 +147,13 @@ METHOD(event_queue_t, destroy, void, free(this); } -bool set_nonblock(int socket) +static bool set_nonblock(int socket) { int flags = fcntl(socket, F_GETFL); return flags != -1 && fcntl(socket, F_SETFL, flags | O_NONBLOCK) != -1; } -bool set_cloexec(int socket) +static bool set_cloexec(int socket) { int flags = fcntl(socket, F_GETFD); return flags != -1 && fcntl(socket, F_SETFD, flags | FD_CLOEXEC) != -1; |