summaryrefslogtreecommitdiff
path: root/src/openvpn/fdmisc.h
diff options
context:
space:
mode:
authorAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
committerAlberto Gonzalez Iniesta <agi@inittab.org>2016-12-27 18:25:47 +0100
commit3a2bbdb05ca6a6996e424c9fb225cb0d53804125 (patch)
treef29063da5bec4caf3853d49a22a09c8619eebd21 /src/openvpn/fdmisc.h
parentd53dba59e78da865c4fe820386ff2f4f76925f3b (diff)
New upstream version 2.4.0upstream/2.4.0
Diffstat (limited to 'src/openvpn/fdmisc.h')
-rw-r--r--src/openvpn/fdmisc.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/openvpn/fdmisc.h b/src/openvpn/fdmisc.h
index d34db9b..1e84a08 100644
--- a/src/openvpn/fdmisc.h
+++ b/src/openvpn/fdmisc.h
@@ -5,7 +5,7 @@
* packet encryption, packet authentication, and
* packet compression.
*
- * Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
+ * Copyright (C) 2002-2017 OpenVPN Technologies, Inc. <sales@openvpn.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -29,18 +29,21 @@
#include "error.h"
#include "syshead.h"
-bool set_nonblock_action (int fd);
-bool set_cloexec_action (int fd);
+bool set_nonblock_action(int fd);
-void set_nonblock (int fd);
-void set_cloexec (int fd);
+bool set_cloexec_action(int fd);
-static inline void openvpn_fd_set(int fd, fd_set *setp)
+void set_nonblock(int fd);
+
+void set_cloexec(int fd);
+
+static inline void
+openvpn_fd_set(int fd, fd_set *setp)
{
#ifndef _WIN32 /* The Windows FD_SET() implementation does not overflow */
- ASSERT (fd >= 0 && fd < FD_SETSIZE);
+ ASSERT(fd >= 0 && fd < FD_SETSIZE);
#endif
- FD_SET (fd, setp);
+ FD_SET(fd, setp);
}
#undef FD_SET /* prevent direct use of FD_SET() */