diff options
author | krw <krw@openbsd.org> | 2016-03-20 00:01:21 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2016-03-20 00:01:21 +0000 |
commit | 830940108cb586124f87decdcb07d3396c396f3e (patch) | |
tree | 86ca514de16c98b53e9957b7ffa34120a7819c65 /usr.sbin/iscsid | |
parent | Extract in6_pcbaddrisavail() from in6_pcbbind(), and use it when (diff) | |
download | wireguard-openbsd-830940108cb586124f87decdcb07d3396c396f3e.tar.xz wireguard-openbsd-830940108cb586124f87decdcb07d3396c396f3e.zip |
Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])
idioms.
Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.
Obviousness evaluation and ok guenther@
Diffstat (limited to 'usr.sbin/iscsid')
-rw-r--r-- | usr.sbin/iscsid/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/iscsid/util.c b/usr.sbin/iscsid/util.c index 0fa7079f75f..904365deb2a 100644 --- a/usr.sbin/iscsid/util.c +++ b/usr.sbin/iscsid/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.6 2015/12/05 06:38:18 mmcc Exp $ */ +/* $OpenBSD: util.c,v 1.7 2016/03/20 00:01:22 krw Exp $ */ /* * Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org> @@ -110,7 +110,7 @@ socket_setblockmode(int fd, int nonblocking) { int flags; - if ((flags = fcntl(fd, F_GETFL, 0)) == -1) + if ((flags = fcntl(fd, F_GETFL)) == -1) return -1; if (nonblocking) |