aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_hello.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-15 18:46:17 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-15 18:46:17 +0100
commit5b32752cd7b02adcb8e6fec7798637638c6f63a0 (patch)
tree2756224d5fff5c1427ab08454c2ee29a0f620c4e /src/dht/gnunet-service-dht_hello.c
parent16fd15965ca4a9a2986f60a7301e86ecb06eb6e3 (diff)
downloadgnunet-5b32752cd7b02adcb8e6fec7798637638c6f63a0.tar.gz
gnunet-5b32752cd7b02adcb8e6fec7798637638c6f63a0.zip
indentation fixes
Diffstat (limited to 'src/dht/gnunet-service-dht_hello.c')
-rw-r--r--src/dht/gnunet-service-dht_hello.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/dht/gnunet-service-dht_hello.c b/src/dht/gnunet-service-dht_hello.c
index 3716ea3af..5a5c41567 100644
--- a/src/dht/gnunet-service-dht_hello.c
+++ b/src/dht/gnunet-service-dht_hello.c
@@ -69,13 +69,15 @@ GDS_HELLO_get (const struct GNUNET_PeerIdentity *peer)
69 * FIXME this is called once per address. Merge instead of replacing? 69 * FIXME this is called once per address. Merge instead of replacing?
70 */ 70 */
71static void 71static void
72process_hello (void *cls, const struct GNUNET_PeerIdentity *peer, 72process_hello (void *cls,
73 const struct GNUNET_HELLO_Message *hello, const char *err_msg) 73 const struct GNUNET_PeerIdentity *peer,
74 const struct GNUNET_HELLO_Message *hello,
75 const char *err_msg)
74{ 76{
75 struct GNUNET_TIME_Absolute ex; 77 struct GNUNET_TIME_Absolute ex;
76 struct GNUNET_HELLO_Message *hm; 78 struct GNUNET_HELLO_Message *hm;
77 79
78 if (hello == NULL) 80 if (NULL == hello)
79 return; 81 return;
80 ex = GNUNET_HELLO_get_last_expiration (hello); 82 ex = GNUNET_HELLO_get_last_expiration (hello);
81 if (0 == GNUNET_TIME_absolute_get_remaining (ex).rel_value_us) 83 if (0 == GNUNET_TIME_absolute_get_remaining (ex).rel_value_us)
@@ -100,8 +102,12 @@ process_hello (void *cls, const struct GNUNET_PeerIdentity *peer,
100void 102void
101GDS_HELLO_init () 103GDS_HELLO_init ()
102{ 104{
103 pnc = GNUNET_PEERINFO_notify (GDS_cfg, GNUNET_NO, &process_hello, NULL); 105 pnc = GNUNET_PEERINFO_notify (GDS_cfg,
104 peer_to_hello = GNUNET_CONTAINER_multipeermap_create (256, GNUNET_NO); 106 GNUNET_NO,
107 &process_hello,
108 NULL);
109 peer_to_hello = GNUNET_CONTAINER_multipeermap_create (256,
110 GNUNET_NO);
105} 111}
106 112
107 113
@@ -131,7 +137,9 @@ GDS_HELLO_done ()
131 } 137 }
132 if (NULL != peer_to_hello) 138 if (NULL != peer_to_hello)
133 { 139 {
134 GNUNET_CONTAINER_multipeermap_iterate (peer_to_hello, &free_hello, NULL); 140 GNUNET_CONTAINER_multipeermap_iterate (peer_to_hello,
141 &free_hello,
142 NULL);
135 GNUNET_CONTAINER_multipeermap_destroy (peer_to_hello); 143 GNUNET_CONTAINER_multipeermap_destroy (peer_to_hello);
136 } 144 }
137} 145}