pluto: Made helper functions in event_queue static.

This commit is contained in:
Tobias Brunner 2011-05-23 18:13:33 +02:00
parent b3c4475076
commit c74ece334d
1 changed files with 2 additions and 2 deletions

View File

@ -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;