diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-20 13:11:14 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-20 13:11:14 +0000 |
commit | 64e107a185bcc069b421964dda2be3100e966570 (patch) | |
tree | 6b3ece4b394e8d9abf55d81bd1d1d747c6795044 /src/namestore | |
parent | f920d447ef216a18b6db1427f164e8b805ba8aa5 (diff) | |
download | gnunet-64e107a185bcc069b421964dda2be3100e966570.tar.gz gnunet-64e107a185bcc069b421964dda2be3100e966570.zip |
- commit often
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index ab07b250c..a5e1ab9ae 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -325,7 +325,7 @@ zone_to_disk_it (void *cls, | |||
325 | * @param rd array of records | 325 | * @param rd array of records |
326 | * @return absolute expiration time | 326 | * @return absolute expiration time |
327 | */ | 327 | */ |
328 | struct GNUNET_TIME_Absolute | 328 | static struct GNUNET_TIME_Absolute |
329 | get_block_expiration_time (unsigned int rd_count, const struct GNUNET_NAMESTORE_RecordData *rd) | 329 | get_block_expiration_time (unsigned int rd_count, const struct GNUNET_NAMESTORE_RecordData *rd) |
330 | { | 330 | { |
331 | unsigned int c; | 331 | unsigned int c; |
@@ -720,6 +720,7 @@ handle_record_put (void *cls, | |||
720 | struct GNUNET_TIME_Absolute expire; | 720 | struct GNUNET_TIME_Absolute expire; |
721 | struct GNUNET_CRYPTO_RsaSignature *signature; | 721 | struct GNUNET_CRYPTO_RsaSignature *signature; |
722 | struct RecordPutResponseMessage rpr_msg; | 722 | struct RecordPutResponseMessage rpr_msg; |
723 | struct GNUNET_CRYPTO_ShortHashCode zone_hash; | ||
723 | size_t name_len; | 724 | size_t name_len; |
724 | size_t msg_size; | 725 | size_t msg_size; |
725 | size_t msg_size_exp; | 726 | size_t msg_size_exp; |
@@ -802,9 +803,7 @@ handle_record_put (void *cls, | |||
802 | goto send; | 803 | goto send; |
803 | } | 804 | } |
804 | 805 | ||
805 | struct GNUNET_CRYPTO_ShortHashCode zone_hash; | ||
806 | GNUNET_CRYPTO_short_hash (&rp_msg->public_key, sizeof (rp_msg->public_key), &zone_hash); | 806 | GNUNET_CRYPTO_short_hash (&rp_msg->public_key, sizeof (rp_msg->public_key), &zone_hash); |
807 | |||
808 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting %u record for name `%s' in zone `%s'\n", rd_count, name, GNUNET_short_h2s(&zone_hash)); | 807 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Putting %u record for name `%s' in zone `%s'\n", rd_count, name, GNUNET_short_h2s(&zone_hash)); |
809 | 808 | ||
810 | /* Database operation */ | 809 | /* Database operation */ |