aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_proportional.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-13 00:11:53 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-13 00:11:53 +0000
commit3e693f3ceb1b3425b17900423628aecb609f2433 (patch)
tree2dd5d5694771de9458eb8c394ce704dea1d0c87e /src/ats/plugin_ats_proportional.c
parentc1fa22fd40d14035c8d323cb4ae8724970850e73 (diff)
downloadgnunet-3e693f3ceb1b3425b17900423628aecb609f2433.tar.gz
gnunet-3e693f3ceb1b3425b17900423628aecb609f2433.zip
-fixing misc minor bugs and style issues (unchecked return values, memory leaks, dead code
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r--src/ats/plugin_ats_proportional.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 9ad00bbb3..7dae3c8be 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -215,7 +215,7 @@ is_bandwidth_available_in_network (struct Network *net,
215 unsigned int na; 215 unsigned int na;
216 uint32_t min_bw = ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__); 216 uint32_t min_bw = ntohl (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT.value__);
217 217
218 GNUNET_assert (net->active_addresses + extra >= 0); 218 GNUNET_assert (((int)net->active_addresses) + extra >= 0);
219 na = net->active_addresses + extra; 219 na = net->active_addresses + extra;
220 if (0 == na) 220 if (0 == na)
221 return GNUNET_YES; 221 return GNUNET_YES;