Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b21fe
)
Function fcntl() only takes 2 args when using F_GETFL.
author
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 06:26:02 +0000
(06:26 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 06:26:02 +0000
(06:26 +0000)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
dc37c04
..
6526a3d
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;