diff options
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index b1f70214c..5b12c4b98 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -1124,14 +1124,13 @@ handle_p2p_estimate (void *cls, | |||
1124 | 1, GNUNET_NO); | 1124 | 1, GNUNET_NO); |
1125 | return; | 1125 | return; |
1126 | } | 1126 | } |
1127 | if (0 == (memcmp (peer_entry->id, | 1127 | if (0 == (GNUNET_memcmp (peer_entry->id, |
1128 | &my_identity, | 1128 | &my_identity))) |
1129 | sizeof (struct GNUNET_PeerIdentity)))) | ||
1130 | { | 1129 | { |
1131 | /* send to self, update our own estimate IF this also comes from us! */ | 1130 | /* send to self, update our own estimate IF this also comes from us! */ |
1132 | if (0 == | 1131 | if (0 == |
1133 | memcmp (&incoming_flood->origin, | 1132 | GNUNET_memcmp (&incoming_flood->origin, |
1134 | &my_identity, sizeof (my_identity))) | 1133 | &my_identity)) |
1135 | update_network_size_estimate (); | 1134 | update_network_size_estimate (); |
1136 | return; | 1135 | return; |
1137 | } | 1136 | } |
@@ -1405,9 +1404,8 @@ core_init (void *cls, | |||
1405 | return; | 1404 | return; |
1406 | } | 1405 | } |
1407 | GNUNET_assert (0 == | 1406 | GNUNET_assert (0 == |
1408 | memcmp (&my_identity, | 1407 | GNUNET_memcmp (&my_identity, |
1409 | identity, | 1408 | identity)); |
1410 | sizeof (struct GNUNET_PeerIdentity))); | ||
1411 | now = GNUNET_TIME_absolute_get (); | 1409 | now = GNUNET_TIME_absolute_get (); |
1412 | current_timestamp.abs_value_us = | 1410 | current_timestamp.abs_value_us = |
1413 | (now.abs_value_us / gnunet_nse_interval.rel_value_us) * | 1411 | (now.abs_value_us / gnunet_nse_interval.rel_value_us) * |