diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-02 13:48:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-02 13:48:08 +0000 |
commit | 45cb6dbbdd3a509e54f94eff3b4f96ed3734b7c9 (patch) | |
tree | 0135934d33225151bec614237c40ae0a991cba25 /src/peerinfo/gnunet-service-peerinfo.c | |
parent | 8d69aeda86985616d001e8e18eb8d808edaf4fdb (diff) | |
download | gnunet-45cb6dbbdd3a509e54f94eff3b4f96ed3734b7c9.tar.gz gnunet-45cb6dbbdd3a509e54f94eff3b4f96ed3734b7c9.zip |
-removing legacy ifdefs
Diffstat (limited to 'src/peerinfo/gnunet-service-peerinfo.c')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index 2a5921b5d..2dbdc9f83 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c | |||
@@ -534,10 +534,8 @@ handle_hello (void *cls, struct GNUNET_SERVER_Client *client, | |||
534 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 534 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
535 | return; | 535 | return; |
536 | } | 536 | } |
537 | #if DEBUG_PEERINFO | ||
538 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received for peer `%4s'\n", | 537 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received for peer `%4s'\n", |
539 | "HELLO", GNUNET_i2s (&pid)); | 538 | "HELLO", GNUNET_i2s (&pid)); |
540 | #endif | ||
541 | bind_address (&pid, hello); | 539 | bind_address (&pid, hello); |
542 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 540 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
543 | } | 541 | } |
@@ -559,10 +557,8 @@ handle_get (void *cls, struct GNUNET_SERVER_Client *client, | |||
559 | 557 | ||
560 | lpm = (const struct ListPeerMessage *) message; | 558 | lpm = (const struct ListPeerMessage *) message; |
561 | GNUNET_break (0 == ntohl (lpm->reserved)); | 559 | GNUNET_break (0 == ntohl (lpm->reserved)); |
562 | #if DEBUG_PEERINFO | ||
563 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received for peer `%4s'\n", | 560 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received for peer `%4s'\n", |
564 | "GET", GNUNET_i2s (&lpm->peer)); | 561 | "GET", GNUNET_i2s (&lpm->peer)); |
565 | #endif | ||
566 | tc = GNUNET_SERVER_transmit_context_create (client); | 562 | tc = GNUNET_SERVER_transmit_context_create (client); |
567 | GNUNET_CONTAINER_multihashmap_get_multiple (hostmap, &lpm->peer.hashPubKey, | 563 | GNUNET_CONTAINER_multihashmap_get_multiple (hostmap, &lpm->peer.hashPubKey, |
568 | &add_to_tc, tc); | 564 | &add_to_tc, tc); |
@@ -585,9 +581,7 @@ handle_get_all (void *cls, struct GNUNET_SERVER_Client *client, | |||
585 | { | 581 | { |
586 | struct GNUNET_SERVER_TransmitContext *tc; | 582 | struct GNUNET_SERVER_TransmitContext *tc; |
587 | 583 | ||
588 | #if DEBUG_PEERINFO | ||
589 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received\n", "GET_ALL"); | 584 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received\n", "GET_ALL"); |
590 | #endif | ||
591 | tc = GNUNET_SERVER_transmit_context_create (client); | 585 | tc = GNUNET_SERVER_transmit_context_create (client); |
592 | GNUNET_CONTAINER_multihashmap_iterate (hostmap, &add_to_tc, tc); | 586 | GNUNET_CONTAINER_multihashmap_iterate (hostmap, &add_to_tc, tc); |
593 | GNUNET_SERVER_transmit_context_append_data (tc, NULL, 0, | 587 | GNUNET_SERVER_transmit_context_append_data (tc, NULL, 0, |
@@ -625,9 +619,7 @@ static void | |||
625 | handle_notify (void *cls, struct GNUNET_SERVER_Client *client, | 619 | handle_notify (void *cls, struct GNUNET_SERVER_Client *client, |
626 | const struct GNUNET_MessageHeader *message) | 620 | const struct GNUNET_MessageHeader *message) |
627 | { | 621 | { |
628 | #if DEBUG_PEERINFO | ||
629 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received\n", "NOTIFY"); | 622 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "`%s' message received\n", "NOTIFY"); |
630 | #endif | ||
631 | GNUNET_SERVER_notification_context_add (notify_list, client); | 623 | GNUNET_SERVER_notification_context_add (notify_list, client); |
632 | GNUNET_CONTAINER_multihashmap_iterate (hostmap, &do_notify_entry, client); | 624 | GNUNET_CONTAINER_multihashmap_iterate (hostmap, &do_notify_entry, client); |
633 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 625 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |