diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-14 19:06:02 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-14 19:06:02 +0300 |
commit | 4e9aeb3c4ffc69daff061c8b870f1a228bb78175 (patch) | |
tree | e56ce0518c621211504039d9b78bcae6d21554da /src/upstream.c | |
parent | 9752a52355f237729a9536eccd930cb60a198695 (diff) | |
download | rspamd-4e9aeb3c4ffc69daff061c8b870f1a228bb78175.tar.gz rspamd-4e9aeb3c4ffc69daff061c8b870f1a228bb78175.zip |
Remove some warnings.
Diffstat (limited to 'src/upstream.c')
-rw-r--r-- | src/upstream.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upstream.c b/src/upstream.c index d167c88ec..b3f282d59 100644 --- a/src/upstream.c +++ b/src/upstream.c @@ -334,12 +334,12 @@ get_upstream_by_hash (void *ups, size_t members, size_t msize, time_t now, time_ struct upstream * get_upstream_round_robin (void *ups, size_t members, size_t msize, time_t now, time_t error_timeout, time_t revive_timeout, size_t max_errors) { - guint alive, max_weight, i; + guint max_weight, i; struct upstream *cur, *selected = NULL; u_char *p; /* Recheck all upstreams */ - alive = rescan_upstreams (ups, members, msize, now, error_timeout, revive_timeout, max_errors); + (void)rescan_upstreams (ups, members, msize, now, error_timeout, revive_timeout, max_errors); p = ups; max_weight = 0; @@ -383,12 +383,12 @@ get_upstream_round_robin (void *ups, size_t members, size_t msize, time_t now, t struct upstream * get_upstream_master_slave (void *ups, size_t members, size_t msize, time_t now, time_t error_timeout, time_t revive_timeout, size_t max_errors) { - guint alive, max_weight, i; + guint max_weight, i; struct upstream *cur, *selected = NULL; u_char *p; /* Recheck all upstreams */ - alive = rescan_upstreams (ups, members, msize, now, error_timeout, revive_timeout, max_errors); + (void)rescan_upstreams (ups, members, msize, now, error_timeout, revive_timeout, max_errors); p = ups; max_weight = 0; |