aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-16 16:03:20 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-16 16:03:20 +0000
commit16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch)
treee09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/nse
parent4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff)
downloadgnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz
gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-nse-profiler.c4
-rw-r--r--src/nse/gnunet-service-nse.c19
-rw-r--r--src/nse/nse_api.c4
3 files changed, 14 insertions, 13 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c
index df26280c4..4879c5916 100644
--- a/src/nse/gnunet-nse-profiler.c
+++ b/src/nse/gnunet-nse-profiler.c
@@ -263,8 +263,8 @@ connect_nse_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
263} 263}
264 264
265 265
266static void churn_peers (void *cls, 266static void
267 const struct GNUNET_SCHEDULER_TaskContext *tc); 267churn_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
268 268
269 269
270/** 270/**
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 */
501static void transmit_task (void *cls, 501static void
502 const struct GNUNET_SCHEDULER_TaskContext *tc); 502transmit_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
diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c
index 8ff0256b9..0eb165fe5 100644
--- a/src/nse/nse_api.c
+++ b/src/nse/nse_api.c
@@ -85,8 +85,8 @@ struct GNUNET_NSE_Handle
85 * @param cls the handle to the transport service 85 * @param cls the handle to the transport service
86 * @param tc scheduler context 86 * @param tc scheduler context
87 */ 87 */
88static void reconnect (void *cls, 88static void
89 const struct GNUNET_SCHEDULER_TaskContext *tc); 89reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
90 90
91 91
92/** 92/**