aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-17 16:18:17 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-17 16:18:17 +0000
commit9d6ceec65d009901ebb8e8eebd480745f952ef18 (patch)
tree6887209650cbfb311100a9cd5f2214df037d5692 /src/dht
parenta3072de329e370b0c4e28e9d3436bcb5a04b25e0 (diff)
downloadgnunet-9d6ceec65d009901ebb8e8eebd480745f952ef18.tar.gz
gnunet-9d6ceec65d009901ebb8e8eebd480745f952ef18.zip
maybe cleaner to initialize explicitly
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/dht_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c
index cd40314f4..11f13b184 100644
--- a/src/dht/dht_api.c
+++ b/src/dht/dht_api.c
@@ -706,9 +706,10 @@ GNUNET_DHT_route_start (struct GNUNET_DHT_Handle *handle,
706 706
707 message->header.size = htons (msize); 707 message->header.size = htons (msize);
708 message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE); 708 message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE);
709 message->key = *key;
710 message->options = htonl ((uint32_t) options); 709 message->options = htonl ((uint32_t) options);
711 message->desired_replication_level = htonl (desired_replication_level); 710 message->desired_replication_level = htonl (desired_replication_level);
711 message->reserved = 0;
712 message->key = *key;
712 handle->uid_gen++; 713 handle->uid_gen++;
713 message->unique_id = GNUNET_htonll (handle->uid_gen); 714 message->unique_id = GNUNET_htonll (handle->uid_gen);
714 memcpy (&message[1], enc, esize); 715 memcpy (&message[1], enc, esize);
@@ -771,6 +772,7 @@ GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *route_handle)
771 pending->msg = &message->header; 772 pending->msg = &message->header;
772 message->header.size = htons (msize); 773 message->header.size = htons (msize);
773 message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP); 774 message->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP);
775 message->reserved = 0;
774 message->unique_id = GNUNET_htonll (route_handle->uid); 776 message->unique_id = GNUNET_htonll (route_handle->uid);
775 message->key = route_handle->key; 777 message->key = route_handle->key;
776 pending->handle = handle; 778 pending->handle = handle;