projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
6730933
)
c++: fix -Wenum-in-bool-context
author
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 11:28:11 +0000
(12:28 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 11:28:11 +0000
(12:28 +0100)
libmemcached/connect.cc
patch
|
blob
|
history
diff --git
a/libmemcached/connect.cc
b/libmemcached/connect.cc
index 52cd293a64c7b0827e79bc970c8dfb7e4d1fcdeb..006810bf68e7bab59aed176858253dd2999fbe33 100644
(file)
--- a/
libmemcached/connect.cc
+++ b/
libmemcached/connect.cc
@@
-294,7
+294,7
@@
static bool set_socket_options(memcached_instance_st* server)
// If SOCK_CLOEXEC exists then we don't need to call the following
if (SOCK_CLOEXEC == 0)
{
// If SOCK_CLOEXEC exists then we don't need to call the following
if (SOCK_CLOEXEC == 0)
{
- if (FD_CLOEXEC)
+ if (FD_CLOEXEC
!= 0
)
{
int flags;
do
{
int flags;
do
@@
-447,12
+447,12
@@
static memcached_return_t unix_socket_connect(memcached_instance_st* server)
do {
int type= SOCK_STREAM;
do {
int type= SOCK_STREAM;
- if (SOCK_CLOEXEC)
+ if (SOCK_CLOEXEC
!= 0
)
{
type|= SOCK_CLOEXEC;
}
{
type|= SOCK_CLOEXEC;
}
- if (SOCK_NONBLOCK)
+ if (SOCK_NONBLOCK
!= 0
)
{
type|= SOCK_NONBLOCK;
}
{
type|= SOCK_NONBLOCK;
}
@@
-542,12
+542,12
@@
static memcached_return_t network_connect(memcached_instance_st* server)
}
int type= server->address_info_next->ai_socktype;
}
int type= server->address_info_next->ai_socktype;
- if (SOCK_CLOEXEC)
+ if (SOCK_CLOEXEC
!= 0
)
{
type|= SOCK_CLOEXEC;
}
{
type|= SOCK_CLOEXEC;
}
- if (SOCK_NONBLOCK)
+ if (SOCK_NONBLOCK
!= 0
)
{
type|= SOCK_NONBLOCK;
}
{
type|= SOCK_NONBLOCK;
}