diff options
author | Andrew Cann <shum@canndrew.org> | 2014-05-11 10:51:01 +0000 |
---|---|---|
committer | Andrew Cann <shum@canndrew.org> | 2014-05-11 10:51:01 +0000 |
commit | 7cd36aaa575cf108442a402eeff0e1b292c0e14a (patch) | |
tree | efc5b7b201c599557fecac084bcdcf00fc787af9 | |
parent | 040a0746e6f69e65a8d032374b45144e5c28d8de (diff) | |
download | gnunet-7cd36aaa575cf108442a402eeff0e1b292c0e14a.tar.gz gnunet-7cd36aaa575cf108442a402eeff0e1b292c0e14a.zip |
Minor bigfixes.
-rw-r--r-- | src/ats/gnunet-service-ats_normalization.c | 9 | ||||
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 1 | ||||
-rw-r--r-- | src/dht/gnunet-service-xdht_neighbours.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c index 1adc4811f..d26055ea9 100644 --- a/src/ats/gnunet-service-ats_normalization.c +++ b/src/ats/gnunet-service-ats_normalization.c | |||
@@ -256,11 +256,10 @@ update_relative_values_for_peer (const struct GNUNET_PeerIdentity *id, | |||
256 | /* No client had any preferences for this type and any peer */ | 256 | /* No client had any preferences for this type and any peer */ |
257 | rp->f_rel[kind] = DEFAULT_REL_PREFERENCE; | 257 | rp->f_rel[kind] = DEFAULT_REL_PREFERENCE; |
258 | } | 258 | } |
259 | } | 259 | if ((backup != rp->f_rel[kind]) && (NULL != pref_changed_cb)) |
260 | 260 | { | |
261 | if ((backup != rp->f_rel[kind]) && (NULL != pref_changed_cb)) | 261 | pref_changed_cb (pref_changed_cb_cls, &rp->id, kind, rp->f_rel[kind]); |
262 | { | 262 | } |
263 | pref_changed_cb (pref_changed_cb_cls, &rp->id, kind, rp->f_rel[kind]); | ||
264 | } | 263 | } |
265 | } | 264 | } |
266 | 265 | ||
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 00db9d1f1..551c5f2c5 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c | |||
@@ -678,6 +678,7 @@ try_transmission (struct Session *session) | |||
678 | { | 678 | { |
679 | /* never solicit more, we have critical messages to process */ | 679 | /* never solicit more, we have critical messages to process */ |
680 | excess = GNUNET_NO; | 680 | excess = GNUNET_NO; |
681 | maxpc = GNUNET_CORE_PRIO_BACKGROUND; | ||
681 | } | 682 | } |
682 | now = GNUNET_TIME_absolute_get (); | 683 | now = GNUNET_TIME_absolute_get (); |
683 | if ( ( (GNUNET_YES == excess) || | 684 | if ( ( (GNUNET_YES == excess) || |
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c index 2338407f3..cdf746e0b 100644 --- a/src/dht/gnunet-service-xdht_neighbours.c +++ b/src/dht/gnunet-service-xdht_neighbours.c | |||
@@ -2468,7 +2468,7 @@ GDS_NEIGHBOURS_send_get (const struct GNUNET_HashCode *key, | |||
2468 | struct GNUNET_PeerIdentity curr_src; | 2468 | struct GNUNET_PeerIdentity curr_src; |
2469 | memcpy (&curr_dest, ¤t_destination, sizeof (struct GNUNET_PeerIdentity)); | 2469 | memcpy (&curr_dest, ¤t_destination, sizeof (struct GNUNET_PeerIdentity)); |
2470 | memcpy (&curr_src, ¤t_source, sizeof (struct GNUNET_PeerIdentity)); | 2470 | memcpy (&curr_src, ¤t_source, sizeof (struct GNUNET_PeerIdentity)); |
2471 | memcpy (&key_value, key, sizeof (struct GNUNET_PeerIdentity)); | 2471 | memcpy (&key_value, key, sizeof (uint64_t)); |
2472 | next_hop = find_successor (key_value, &curr_dest, &curr_src, NULL); | 2472 | next_hop = find_successor (key_value, &curr_dest, &curr_src, NULL); |
2473 | /* FIXME: Again I am copying back value of current_destination, current_source, | 2473 | /* FIXME: Again I am copying back value of current_destination, current_source, |
2474 | Think of a better solution. */ | 2474 | Think of a better solution. */ |