aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-05 17:40:11 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-05 17:40:11 +0100
commitd1a949abaf5f35930ac9686ce22ecae9cf955fc7 (patch)
tree815ce3faddcfa6add8526e467f221e3c4722f59c /src
parent0f99e72d1f63598332fff5a05de4726e95bf1b19 (diff)
downloadgnunet-d1a949abaf5f35930ac9686ce22ecae9cf955fc7.tar.gz
gnunet-d1a949abaf5f35930ac9686ce22ecae9cf955fc7.zip
eliminate warnings
Diffstat (limited to 'src')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index b6db9ea8b..8d3e47f94 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -616,6 +616,8 @@ neighbours_changed_notification (const struct GNUNET_PeerIdentity *peer,
616 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 616 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
617 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out) 617 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out)
618{ 618{
619 (void) bandwidth_in;
620 (void) bandwidth_out;
619 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 621 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
620 "Notifying about change for peer `%s' with address `%s' in state `%s' timing out at %s\n", 622 "Notifying about change for peer `%s' with address `%s' in state `%s' timing out at %s\n",
621 GNUNET_i2s (peer), 623 GNUNET_i2s (peer),
@@ -993,6 +995,10 @@ send_disconnect_cont (void *cls,
993{ 995{
994 struct NeighbourMapEntry *n; 996 struct NeighbourMapEntry *n;
995 997
998 (void) cls;
999 (void) result;
1000 (void) payload;
1001 (void) physical;
996 n = lookup_neighbour (target); 1002 n = lookup_neighbour (target);
997 if (NULL == n) 1003 if (NULL == n)
998 return; /* already gone */ 1004 return; /* already gone */
@@ -1812,6 +1818,9 @@ send_session_syn_cont (void *cls,
1812{ 1818{
1813 struct NeighbourMapEntry *n; 1819 struct NeighbourMapEntry *n;
1814 1820
1821 (void) cls;
1822 (void) size_payload;
1823 (void) size_on_wire;
1815 n = lookup_neighbour (target); 1824 n = lookup_neighbour (target);
1816 if (NULL == n) 1825 if (NULL == n)
1817 { 1826 {
@@ -1985,6 +1994,9 @@ send_session_syn_ack_cont (void *cls,
1985{ 1994{
1986 struct NeighbourMapEntry *n; 1995 struct NeighbourMapEntry *n;
1987 1996
1997 (void) cls;
1998 (void) size_payload;
1999 (void) size_on_wire;
1988 n = lookup_neighbour (target); 2000 n = lookup_neighbour (target);
1989 if (NULL == n) 2001 if (NULL == n)
1990 { 2002 {
@@ -2814,6 +2826,7 @@ send_utilization_data (void *cls,
2814 uint32_t bps_out; 2826 uint32_t bps_out;
2815 struct GNUNET_TIME_Relative delta; 2827 struct GNUNET_TIME_Relative delta;
2816 2828
2829 (void) cls;
2817 if ( (GNUNET_YES != test_connected (n)) || 2830 if ( (GNUNET_YES != test_connected (n)) ||
2818 (NULL == n->primary_address.address) ) 2831 (NULL == n->primary_address.address) )
2819 return GNUNET_OK; 2832 return GNUNET_OK;
@@ -2844,11 +2857,12 @@ send_utilization_data (void *cls,
2844/** 2857/**
2845 * Task transmitting utilization in a regular interval 2858 * Task transmitting utilization in a regular interval
2846 * 2859 *
2847 * @param cls the 'struct NeighbourMapEntry' for which we are running 2860 * @param cls the `struct NeighbourMapEntry` for which we are running
2848 */ 2861 */
2849static void 2862static void
2850utilization_transmission (void *cls) 2863utilization_transmission (void *cls)
2851{ 2864{
2865 (void) cls;
2852 util_transmission_tk = NULL; 2866 util_transmission_tk = NULL;
2853 GNUNET_CONTAINER_multipeermap_iterate (neighbours, 2867 GNUNET_CONTAINER_multipeermap_iterate (neighbours,
2854 &send_utilization_data, 2868 &send_utilization_data,
@@ -3104,6 +3118,7 @@ GST_neighbours_handle_session_syn_ack (const struct GNUNET_MessageHeader *messag
3104 struct GNUNET_TIME_Absolute ts; 3118 struct GNUNET_TIME_Absolute ts;
3105 struct NeighbourMapEntry *n; 3119 struct NeighbourMapEntry *n;
3106 3120
3121 (void) session;
3107 if (ntohs (message->size) != sizeof (struct TransportSynMessage)) 3122 if (ntohs (message->size) != sizeof (struct TransportSynMessage))
3108 { 3123 {
3109 GNUNET_break_op (0); 3124 GNUNET_break_op (0);
@@ -3377,6 +3392,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
3377{ 3392{
3378 struct NeighbourMapEntry *n; 3393 struct NeighbourMapEntry *n;
3379 3394
3395 (void) session;
3380 if (ntohs (message->size) != sizeof (struct GNUNET_MessageHeader)) 3396 if (ntohs (message->size) != sizeof (struct GNUNET_MessageHeader))
3381 { 3397 {
3382 GNUNET_break_op (0); 3398 GNUNET_break_op (0);
@@ -3650,6 +3666,7 @@ neighbours_iterate (void *cls,
3650 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in; 3666 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
3651 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out; 3667 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
3652 3668
3669 (void) key;
3653 if (NULL != n->primary_address.address) 3670 if (NULL != n->primary_address.address)
3654 { 3671 {
3655 bandwidth_in = n->primary_address.bandwidth_in; 3672 bandwidth_in = n->primary_address.bandwidth_in;
@@ -3742,6 +3759,7 @@ GST_neighbour_get_current_address (const struct GNUNET_PeerIdentity *peer)
3742void 3759void
3743GST_neighbours_start (unsigned int max_fds) 3760GST_neighbours_start (unsigned int max_fds)
3744{ 3761{
3762 (void) max_fds;
3745 neighbours = GNUNET_CONTAINER_multipeermap_create (NEIGHBOUR_TABLE_SIZE, 3763 neighbours = GNUNET_CONTAINER_multipeermap_create (NEIGHBOUR_TABLE_SIZE,
3746 GNUNET_NO); 3764 GNUNET_NO);
3747 util_transmission_tk = GNUNET_SCHEDULER_add_delayed (UTIL_TRANSMISSION_INTERVAL, 3765 util_transmission_tk = GNUNET_SCHEDULER_add_delayed (UTIL_TRANSMISSION_INTERVAL,
@@ -3765,6 +3783,8 @@ disconnect_all_neighbours (void *cls,
3765{ 3783{
3766 struct NeighbourMapEntry *n = value; 3784 struct NeighbourMapEntry *n = value;
3767 3785
3786 (void) cls;
3787 (void) key;
3768 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3788 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3769 "Disconnecting peer `%4s' during shutdown\n", 3789 "Disconnecting peer `%4s' during shutdown\n",
3770 GNUNET_i2s (&n->id)); 3790 GNUNET_i2s (&n->id));