From: Christian Grothoff Date: Thu, 21 Jan 2010 18:32:42 +0000 (+0000) Subject: fixes X-Git-Tag: initial-import-from-subversion-38251~22887 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a72baac5158e9ad5b69c7e9af1144604e92689cc;p=oweals%2Fgnunet.git fixes --- diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 7cb5e245c..bb3a0d586 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c @@ -104,7 +104,9 @@ terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) static void connect_notify (void *cls, - const struct GNUNET_PeerIdentity *peer) + const struct GNUNET_PeerIdentity *peer, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { GNUNET_assert ((ok == 5) || (ok == 6)); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, @@ -125,7 +127,9 @@ disconnect_notify (void *cls, static int inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_MessageHeader *message, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Core provides inbound data from `%4s'.\n", GNUNET_i2s (other)); @@ -136,7 +140,9 @@ inbound_notify (void *cls, static int outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_MessageHeader *message, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Core notifies about outbound data for `%4s'.\n", @@ -151,7 +157,9 @@ static GNUNET_SCHEDULER_TaskIdentifier err_task; static int process_mtype (void *cls, const struct GNUNET_PeerIdentity *peer, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_MessageHeader *message, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Receiving message from `%4s'.\n", GNUNET_i2s (peer)); diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c index 8b5e867bc..8994b31a7 100644 --- a/src/core/test_core_api_start_only.c +++ b/src/core/test_core_api_start_only.c @@ -71,7 +71,9 @@ static int ok; static void connect_notify (void *cls, - const struct GNUNET_PeerIdentity *peer) + const struct GNUNET_PeerIdentity *peer, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { } @@ -86,7 +88,9 @@ disconnect_notify (void *cls, static int inbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_MessageHeader *message, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { return GNUNET_OK; } @@ -95,7 +99,9 @@ inbound_notify (void *cls, static int outbound_notify (void *cls, const struct GNUNET_PeerIdentity *other, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_MessageHeader *message, + struct GNUNET_TIME_Relative latency, + uint32_t distance) { return GNUNET_OK; }