Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use a bool directly in an int comparison.
[rsync/rsync.git]
/
util.c
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;
{
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;
return;
if (!(val & NONBLOCK_FLAG)) {
val |= NONBLOCK_FLAG;
@@
-58,7
+58,7
@@
void set_blocking(int fd)
{
int val;
{
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;
return;
if (val & NONBLOCK_FLAG) {
val &= ~NONBLOCK_FLAG;