]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Function fcntl() only takes 2 args when using F_GETFL.
authorWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:26:02 +0000 (06:26 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 13 Oct 2006 06:26:02 +0000 (06:26 +0000)
util.c

diff --git a/util.c b/util.c
index dc37c04a824b5feeacb287e9de7e7f9c00c84c06..6526a3d940abb205c6010d09d01f8520fefe21f8 100644 (file)
--- a/util.c
+++ b/util.c
@@ -45,7 +45,7 @@ void set_nonblocking(int fd)
 {
        int val;
 
-       if ((val = fcntl(fd, F_GETFL, 0)) == -1)
+       if ((val = fcntl(fd, F_GETFL)) == -1)
                return;
        if (!(val & NONBLOCK_FLAG)) {
                val |= NONBLOCK_FLAG;
@@ -58,7 +58,7 @@ void set_blocking(int fd)
 {
        int val;
 
-       if ((val = fcntl(fd, F_GETFL, 0)) == -1)
+       if ((val = fcntl(fd, F_GETFL)) == -1)
                return;
        if (val & NONBLOCK_FLAG) {
                val &= ~NONBLOCK_FLAG;