diff options
-rw-r--r-- | src/gns/plugin_rest_gns.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index 345298849..60ccb23c0 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c | |||
@@ -88,7 +88,7 @@ struct LookupHandle | |||
88 | /** | 88 | /** |
89 | * ID of a task associated with the resolution process. | 89 | * ID of a task associated with the resolution process. |
90 | */ | 90 | */ |
91 | struct GNUNET_SCHEDULER_Task * timeout_task; | 91 | struct GNUNET_SCHEDULER_Task * timeout_task; |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * The root of the received JSON or NULL | 94 | * The root of the received JSON or NULL |
@@ -149,11 +149,13 @@ struct LookupHandle | |||
149 | 149 | ||
150 | }; | 150 | }; |
151 | 151 | ||
152 | |||
152 | /** | 153 | /** |
153 | * Cleanup lookup handle | 154 | * Cleanup lookup handle. |
154 | * @praram handle Handle to clean up | 155 | * |
156 | * @param handle Handle to clean up | ||
155 | */ | 157 | */ |
156 | void | 158 | static void |
157 | cleanup_handle (struct LookupHandle *handle) | 159 | cleanup_handle (struct LookupHandle *handle) |
158 | { | 160 | { |
159 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 161 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -218,6 +220,7 @@ create_json_response (const char *data) | |||
218 | return resp; | 220 | return resp; |
219 | } | 221 | } |
220 | 222 | ||
223 | |||
221 | /** | 224 | /** |
222 | * Task run on shutdown. Cleans up everything. | 225 | * Task run on shutdown. Cleans up everything. |
223 | * | 226 | * |
@@ -234,6 +237,7 @@ do_error (void *cls, | |||
234 | cleanup_handle (handle); | 237 | cleanup_handle (handle); |
235 | } | 238 | } |
236 | 239 | ||
240 | |||
237 | /** | 241 | /** |
238 | * Create json representation of a GNSRECORD | 242 | * Create json representation of a GNSRECORD |
239 | * | 243 | * |
@@ -525,7 +529,7 @@ parse_url (const char *url, struct LookupHandle *handle) | |||
525 | } | 529 | } |
526 | handle->type = GNUNET_GNSRECORD_typename_to_number (type); | 530 | handle->type = GNUNET_GNSRECORD_typename_to_number (type); |
527 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 531 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
528 | "Got type: %s\n", type); | 532 | "Got type: %s\n", type); |
529 | return GNUNET_OK; | 533 | return GNUNET_OK; |
530 | } | 534 | } |
531 | 535 | ||