diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 16:24:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 16:24:42 +0000 |
commit | 4f4a572297261f4bddce6e39879340d91a492ab9 (patch) | |
tree | 0aea7620b69659cebbe4b5311263f04fd12a70a6 /src/ats/plugin_ats_ril.c | |
parent | 386b7d1a0a8b86248e503602b30614b8a3984061 (diff) | |
download | gnunet-4f4a572297261f4bddce6e39879340d91a492ab9.tar.gz gnunet-4f4a572297261f4bddce6e39879340d91a492ab9.zip |
avoid several linear scans and allocations by combining AddressWrapper and asi structs
Diffstat (limited to 'src/ats/plugin_ats_ril.c')
-rw-r--r-- | src/ats/plugin_ats_ril.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index 76212e835..047be865c 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c | |||
@@ -2257,12 +2257,10 @@ GAS_ril_address_add (void *solver, | |||
2257 | * | 2257 | * |
2258 | * @param solver the solver handle | 2258 | * @param solver the solver handle |
2259 | * @param address the address to remove | 2259 | * @param address the address to remove |
2260 | * @param session_only delete only session not whole address | ||
2261 | */ | 2260 | */ |
2262 | static void | 2261 | static void |
2263 | GAS_ril_address_delete (void *solver, | 2262 | GAS_ril_address_delete (void *solver, |
2264 | struct ATS_Address *address, | 2263 | struct ATS_Address *address) |
2265 | int session_only) | ||
2266 | { | 2264 | { |
2267 | struct GAS_RIL_Handle *s = solver; | 2265 | struct GAS_RIL_Handle *s = solver; |
2268 | struct RIL_Peer_Agent *agent; | 2266 | struct RIL_Peer_Agent *agent; |
@@ -2274,8 +2272,9 @@ GAS_ril_address_delete (void *solver, | |||
2274 | struct RIL_Scope *net; | 2272 | struct RIL_Scope *net; |
2275 | 2273 | ||
2276 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2274 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2277 | "API_address_delete() Delete %s%s %s address %s for peer '%s'\n", | 2275 | "API_address_delete() Delete %s %s address %s for peer '%s'\n", |
2278 | session_only ? "session for " : "", address->active ? "active" : "inactive", address->plugin, | 2276 | address->active ? "active" : "inactive", |
2277 | address->plugin, | ||
2279 | address->addr, | 2278 | address->addr, |
2280 | GNUNET_i2s (&address->peer)); | 2279 | GNUNET_i2s (&address->peer)); |
2281 | 2280 | ||