summaryrefslogtreecommitdiff
path: root/src/listener.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-07 11:37:35 +0000
commit0b635145d3a16f4e6bb4182956917a320afc1bd7 (patch)
tree83a56b7225f564a1a6d3c3a12a7f4dab3505ceff /src/listener.c
parentconfigure cleanup (diff)
fixed build with -Wall
added build support for clang git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@67 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/listener.c')
-rw-r--r--src/listener.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listener.c b/src/listener.c
index e3d36cb..abb0f6f 100644
--- a/src/listener.c
+++ b/src/listener.c
@@ -217,7 +217,7 @@ static listener_t* find_zombie_listener(listeners_t* list, tcp_endpoint_t* local
slist_element_t* tmp = list->first_;
while(tmp) {
listener_t* l = (listener_t*)tmp->data_;
- if(l && l->state_ == ZOMBIE && l->local_end_.len_ == local_end->len_ &&
+ if(l && l->state_ == ZOMBIE && l->local_end_.len_ == local_end->len_ &&
!memcmp(&(l->local_end_.addr_), &(local_end->addr_), local_end->len_))
return l;
tmp = tmp->next_;
@@ -229,7 +229,7 @@ static listener_t* find_zombie_listener(listeners_t* list, tcp_endpoint_t* local
int listeners_update(listeners_t* list)
{
if(!list)
- return;
+ return 0;
slist_element_t* tmp = list->first_;
while(tmp) {