pluto: Made helper functions in event_queue static.

This commit is contained in:
Tobias Brunner
2011-05-24 19:23:45 +02:00
parent b3c4475076
commit c74ece334d
+2 -2
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;