diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-05-23 18:13:33 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-05-24 19:23:45 +0200 |
commit | c74ece334dccf57da28588429ae545c6edfef75b (patch) | |
tree | 400c2e49667d69976e3014bfc300b9ed9fd3e06f /src | |
parent | b3c4475076e2401da30d9a9852b37f617ac53353 (diff) | |
download | strongswan-c74ece334dccf57da28588429ae545c6edfef75b.tar.bz2 strongswan-c74ece334dccf57da28588429ae545c6edfef75b.tar.xz |
pluto: Made helper functions in event_queue static.
Diffstat (limited to 'src')
-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; |