]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pluto: Made helper functions in event_queue static.
authorTobias Brunner <tobias@strongswan.org>
Mon, 23 May 2011 16:13:33 +0000 (18:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 24 May 2011 17:23:45 +0000 (19:23 +0200)
src/pluto/event_queue.c

index 55d064f26dda5f7708362678b411bf5bef94a97a..602a013ee5164f59623fe315750800f1be35b86b 100644 (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;