diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-26 12:25:46 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-26 12:25:46 +0000 |
commit | 0907017523af0870fad5ab36f1b04f1bef7a91c3 (patch) | |
tree | 8b4859a5ffb1cf158d41d561473f631a4548777c /src/ats | |
parent | d001d21fbd70b6f11bd52af98f7f89faf87ec429 (diff) | |
download | gnunet-0907017523af0870fad5ab36f1b04f1bef7a91c3.tar.gz gnunet-0907017523af0870fad5ab36f1b04f1bef7a91c3.zip |
use static variable
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 5459e216b..de8e5a9c4 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c | |||
@@ -905,8 +905,9 @@ get_active_address (void *solver, | |||
905 | const struct GNUNET_CONTAINER_MultiPeerMap * addresses, | 905 | const struct GNUNET_CONTAINER_MultiPeerMap * addresses, |
906 | const struct GNUNET_PeerIdentity *peer) | 906 | const struct GNUNET_PeerIdentity *peer) |
907 | { | 907 | { |
908 | struct ATS_Address * dest = NULL; | 908 | static struct ATS_Address * dest = NULL; |
909 | 909 | ||
910 | dest = NULL; | ||
910 | GNUNET_CONTAINER_multipeermap_get_multiple (addresses, peer, | 911 | GNUNET_CONTAINER_multipeermap_get_multiple (addresses, peer, |
911 | &get_active_address_it, &dest); | 912 | &get_active_address_it, &dest); |
912 | return dest; | 913 | return dest; |