diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-22 22:35:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-22 22:35:05 +0000 |
commit | 78b8e1c2a54c44992a16b65cdf67fea973e2cad0 (patch) | |
tree | 7ba43cb8271651a2c59125b2effd73bfd05c146a /src/ats/gnunet-service-ats.c | |
parent | 9eb79c486b5e793d4a93e822c695b88b67981466 (diff) | |
download | gnunet-78b8e1c2a54c44992a16b65cdf67fea973e2cad0.tar.gz gnunet-78b8e1c2a54c44992a16b65cdf67fea973e2cad0.zip |
-indentation, do not pass stats arg as const just to then cast the const away
Diffstat (limited to 'src/ats/gnunet-service-ats.c')
-rw-r--r-- | src/ats/gnunet-service-ats.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c index 321166d5b..44bb1cebc 100644 --- a/src/ats/gnunet-service-ats.c +++ b/src/ats/gnunet-service-ats.c | |||
@@ -50,15 +50,16 @@ static struct GAS_Addresses_Handle *GSA_addresses; | |||
50 | 50 | ||
51 | 51 | ||
52 | /** | 52 | /** |
53 | * We have received a `struct ClientStartMessage` from a client. Find out which | 53 | * We have received a `struct ClientStartMessage` from a client. Find |
54 | * type of client it is and notify the respective subsystem. | 54 | * out which type of client it is and notify the respective subsystem. |
55 | * | 55 | * |
56 | * @param cls closure, unused | 56 | * @param cls closure, unused |
57 | * @param client handle to the client | 57 | * @param client handle to the client |
58 | * @param message the start message | 58 | * @param message the start message |
59 | */ | 59 | */ |
60 | static void | 60 | static void |
61 | handle_ats_start (void *cls, struct GNUNET_SERVER_Client *client, | 61 | handle_ats_start (void *cls, |
62 | struct GNUNET_SERVER_Client *client, | ||
62 | const struct GNUNET_MessageHeader *message) | 63 | const struct GNUNET_MessageHeader *message) |
63 | { | 64 | { |
64 | const struct ClientStartMessage *msg = | 65 | const struct ClientStartMessage *msg = |
@@ -150,7 +151,8 @@ run (void *cls, | |||
150 | { | 151 | { |
151 | static const struct GNUNET_SERVER_MessageHandler handlers[] = { | 152 | static const struct GNUNET_SERVER_MessageHandler handlers[] = { |
152 | {&handle_ats_start, NULL, | 153 | {&handle_ats_start, NULL, |
153 | GNUNET_MESSAGE_TYPE_ATS_START, sizeof (struct ClientStartMessage)}, | 154 | GNUNET_MESSAGE_TYPE_ATS_START, |
155 | sizeof (struct ClientStartMessage)}, | ||
154 | {&GAS_handle_request_address, NULL, | 156 | {&GAS_handle_request_address, NULL, |
155 | GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS, | 157 | GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS, |
156 | sizeof (struct RequestAddressMessage)}, | 158 | sizeof (struct RequestAddressMessage)}, |
@@ -189,10 +191,11 @@ run (void *cls, | |||
189 | GAS_performance_init (server, GSA_addresses); | 191 | GAS_performance_init (server, GSA_addresses); |
190 | GAS_scheduling_init (server, GSA_addresses); | 192 | GAS_scheduling_init (server, GSA_addresses); |
191 | 193 | ||
192 | GNUNET_SERVER_disconnect_notify (server, &client_disconnect_handler, NULL); | 194 | GNUNET_SERVER_disconnect_notify (server, |
195 | &client_disconnect_handler, NULL); | ||
193 | GNUNET_SERVER_add_handlers (server, handlers); | 196 | GNUNET_SERVER_add_handlers (server, handlers); |
194 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, | 197 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, |
195 | NULL); | 198 | &cleanup_task, NULL); |
196 | } | 199 | } |
197 | 200 | ||
198 | 201 | ||