diff options
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 5f880088f..c82180dfd 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -498,8 +498,8 @@ get_transmit_delay (int round_offset) | |||
498 | * @param cls the 'struct NSEPeerEntry' | 498 | * @param cls the 'struct NSEPeerEntry' |
499 | * @param tc scheduler context | 499 | * @param tc scheduler context |
500 | */ | 500 | */ |
501 | static void transmit_task (void *cls, | 501 | static void |
502 | const struct GNUNET_SCHEDULER_TaskContext *tc); | 502 | transmit_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); |
503 | 503 | ||
504 | 504 | ||
505 | /** | 505 | /** |
@@ -545,8 +545,9 @@ transmit_ready (void *cls, size_t size, void *buf) | |||
545 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 545 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
546 | "In round %llu, sending to `%s' estimate with %u bits\n", | 546 | "In round %llu, sending to `%s' estimate with %u bits\n", |
547 | (unsigned long long) | 547 | (unsigned long long) |
548 | GNUNET_TIME_absolute_ntoh (size_estimate_messages[idx].timestamp). | 548 | GNUNET_TIME_absolute_ntoh (size_estimate_messages[idx]. |
549 | abs_value, GNUNET_i2s (&peer_entry->id), | 549 | timestamp).abs_value, |
550 | GNUNET_i2s (&peer_entry->id), | ||
550 | (unsigned int) ntohl (size_estimate_messages[idx].matching_bits)); | 551 | (unsigned int) ntohl (size_estimate_messages[idx].matching_bits)); |
551 | #endif | 552 | #endif |
552 | if (ntohl (size_estimate_messages[idx].hop_count) == 0) | 553 | if (ntohl (size_estimate_messages[idx].hop_count) == 0) |
@@ -861,8 +862,8 @@ verify_message_crypto (const struct GNUNET_NSE_FloodMessage *incoming_flood) | |||
861 | incoming_flood->proof_of_work)) | 862 | incoming_flood->proof_of_work)) |
862 | { | 863 | { |
863 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Proof of work invalid: %llu!\n"), | 864 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Proof of work invalid: %llu!\n"), |
864 | (unsigned long long) GNUNET_ntohll (incoming_flood-> | 865 | (unsigned long long) |
865 | proof_of_work)); | 866 | GNUNET_ntohll (incoming_flood->proof_of_work)); |
866 | GNUNET_break_op (0); | 867 | GNUNET_break_op (0); |
867 | return GNUNET_NO; | 868 | return GNUNET_NO; |
868 | } | 869 | } |
@@ -959,9 +960,9 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
959 | GNUNET_snprintf (pred, sizeof (pred), "%s", GNUNET_i2s (peer)); | 960 | GNUNET_snprintf (pred, sizeof (pred), "%s", GNUNET_i2s (peer)); |
960 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 961 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
961 | "Flood at %llu from `%s' via `%s' at `%s' with bits %u\n", | 962 | "Flood at %llu from `%s' via `%s' at `%s' with bits %u\n", |
962 | (unsigned long long) GNUNET_TIME_absolute_ntoh (incoming_flood-> | 963 | (unsigned long long) |
963 | timestamp). | 964 | GNUNET_TIME_absolute_ntoh (incoming_flood->timestamp).abs_value, |
964 | abs_value, origin, pred, GNUNET_i2s (&my_identity), | 965 | origin, pred, GNUNET_i2s (&my_identity), |
965 | (unsigned int) matching_bits); | 966 | (unsigned int) matching_bits); |
966 | } | 967 | } |
967 | #endif | 968 | #endif |