summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix/socket.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-04-16 18:32:29 +0000
committerkrw <krw@openbsd.org>2016-04-16 18:32:29 +0000
commitc8939cf402299d704d258ef2a9e9ffd317bc33f3 (patch)
tree4f2e525846ffb7fafc473d6647db6e5d2e170c0f /usr.sbin/bind/lib/isc/unix/socket.c
parentMake the gmbus code work on valleyview. (diff)
downloadwireguard-openbsd-c8939cf402299d704d258ef2a9e9ffd317bc33f3.tar.xz
wireguard-openbsd-c8939cf402299d704d258ef2a9e9ffd317bc33f3.zip
Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).
No functional change. ok millert@
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/socket.c')
-rw-r--r--usr.sbin/bind/lib/isc/unix/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/socket.c b/usr.sbin/bind/lib/isc/unix/socket.c
index 98bf327c19a..34f75e023c6 100644
--- a/usr.sbin/bind/lib/isc/unix/socket.c
+++ b/usr.sbin/bind/lib/isc/unix/socket.c
@@ -491,7 +491,7 @@ make_nonblock(int fd) {
ret = ioctl(fd, FIONBIO, (char *)&on);
#else
- flags = fcntl(fd, F_GETFL, 0);
+ flags = fcntl(fd, F_GETFL);
flags |= PORT_NONBLOCK;
ret = fcntl(fd, F_SETFL, flags);
#endif