diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-16 18:32:30 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-16 18:32:30 +0000 |
commit | 4705225d3e537e3c9dcaaf70fc3edf83c143a2c7 (patch) | |
tree | 68014c22850a8b07f9834e4bce3dbcfb117b6b2b /usr.sbin/bind/lib | |
parent | 601fae5eb4912e8c15bc1f98d8205f83245511bc (diff) |
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')
-rw-r--r-- | usr.sbin/bind/lib/isc/unix/entropy.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/unix/socket.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/lwres/context.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/entropy.c b/usr.sbin/bind/lib/isc/unix/entropy.c index 57609868a57..ebe812129fb 100644 --- a/usr.sbin/bind/lib/isc/unix/entropy.c +++ b/usr.sbin/bind/lib/isc/unix/entropy.c @@ -452,7 +452,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 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 diff --git a/usr.sbin/bind/lib/lwres/context.c b/usr.sbin/bind/lib/lwres/context.c index 950cb3531dc..823620edd04 100644 --- a/usr.sbin/bind/lib/lwres/context.c +++ b/usr.sbin/bind/lib/lwres/context.c @@ -120,7 +120,7 @@ #ifndef MAKE_NONBLOCKING #define MAKE_NONBLOCKING(sd, retval) \ do { \ - retval = fcntl(sd, F_GETFL, 0); \ + retval = fcntl(sd, F_GETFL); \ if (retval != -1) { \ retval |= O_NONBLOCK; \ retval = fcntl(sd, F_SETFL, retval); \ |