diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-15 18:46:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-15 18:46:17 +0100 |
commit | 5b32752cd7b02adcb8e6fec7798637638c6f63a0 (patch) | |
tree | 2756224d5fff5c1427ab08454c2ee29a0f620c4e /src/dht/gnunet-service-dht_hello.c | |
parent | 16fd15965ca4a9a2986f60a7301e86ecb06eb6e3 (diff) | |
download | gnunet-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.c | 20 |
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 | */ |
71 | static void | 71 | static void |
72 | process_hello (void *cls, const struct GNUNET_PeerIdentity *peer, | 72 | process_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, | |||
100 | void | 102 | void |
101 | GDS_HELLO_init () | 103 | GDS_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 | } |