diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-30 18:24:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-30 18:24:13 +0000 |
commit | 6fd0a7efde08115b568b99b7755861a50f1b6c2e (patch) | |
tree | d8d712f0a5cafe18ddf8ff33296ff24b30beae7f /src/dht | |
parent | 6a4c5ee6195fb7a6fcf90b1bae5ca36926e82023 (diff) | |
download | gnunet-6fd0a7efde08115b568b99b7755861a50f1b6c2e.tar.gz gnunet-6fd0a7efde08115b568b99b7755861a50f1b6c2e.zip |
towards reviving priorities in core API, this time with enum to make classes clearer
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet-service-dht_neighbours.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c index d15af4ee6..25aa0c7b5 100644 --- a/src/dht/gnunet-service-dht_neighbours.c +++ b/src/dht/gnunet-service-dht_neighbours.c | |||
@@ -793,16 +793,16 @@ core_transmit_notify (void *cls, size_t size, void *buf) | |||
793 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, pending); | 793 | GNUNET_CONTAINER_DLL_remove (peer->head, peer->tail, pending); |
794 | GNUNET_free (pending); | 794 | GNUNET_free (pending); |
795 | } | 795 | } |
796 | if (pending == NULL) | 796 | if (NULL == pending) |
797 | { | 797 | { |
798 | /* no messages pending */ | 798 | /* no messages pending */ |
799 | return 0; | 799 | return 0; |
800 | } | 800 | } |
801 | if (buf == NULL) | 801 | if (NULL == buf) |
802 | { | 802 | { |
803 | peer->th = | 803 | peer->th = |
804 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, | 804 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, |
805 | pending->importance, | 805 | GNUNET_CORE_PRIO_BEST_EFFORT, |
806 | GNUNET_TIME_absolute_get_remaining | 806 | GNUNET_TIME_absolute_get_remaining |
807 | (pending->timeout), &peer->id, | 807 | (pending->timeout), &peer->id, |
808 | ntohs (pending->msg->size), | 808 | ntohs (pending->msg->size), |
@@ -828,7 +828,7 @@ core_transmit_notify (void *cls, size_t size, void *buf) | |||
828 | { | 828 | { |
829 | peer->th = | 829 | peer->th = |
830 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, | 830 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, |
831 | pending->importance, | 831 | GNUNET_CORE_PRIO_BEST_EFFORT, |
832 | GNUNET_TIME_absolute_get_remaining | 832 | GNUNET_TIME_absolute_get_remaining |
833 | (pending->timeout), &peer->id, msize, | 833 | (pending->timeout), &peer->id, msize, |
834 | &core_transmit_notify, peer); | 834 | &core_transmit_notify, peer); |
@@ -858,7 +858,7 @@ process_peer_queue (struct PeerInfo *peer) | |||
858 | ntohs (pending->msg->size), GNUNET_NO); | 858 | ntohs (pending->msg->size), GNUNET_NO); |
859 | peer->th = | 859 | peer->th = |
860 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, | 860 | GNUNET_CORE_notify_transmit_ready (core_api, GNUNET_NO, |
861 | pending->importance, | 861 | GNUNET_CORE_PRIO_BEST_EFFORT, |
862 | GNUNET_TIME_absolute_get_remaining | 862 | GNUNET_TIME_absolute_get_remaining |
863 | (pending->timeout), &peer->id, | 863 | (pending->timeout), &peer->id, |
864 | ntohs (pending->msg->size), | 864 | ntohs (pending->msg->size), |
@@ -2224,4 +2224,4 @@ GDS_NEIGHBOURS_get_id () | |||
2224 | } | 2224 | } |
2225 | 2225 | ||
2226 | 2226 | ||
2227 | /* end of gnunet-service-dht_neighbours.c */ \ No newline at end of file | 2227 | /* end of gnunet-service-dht_neighbours.c */ |