diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-12 16:23:48 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-12 16:23:48 +0000 |
commit | ef7d87aa0e235183bc48f82b3797684a883ec1f3 (patch) | |
tree | 0ecf9ca58c3f6dfb4ae4f03014e3fe0ea378edf3 /src/gns/gnunet-gns-proxy.c | |
parent | ac5fff04d81839d0d509fb6cc31725a8a753e5bf (diff) | |
download | gnunet-ef7d87aa0e235183bc48f82b3797684a883ec1f3.tar.gz gnunet-ef7d87aa0e235183bc48f82b3797684a883ec1f3.zip |
-fix, doxy
Diffstat (limited to 'src/gns/gnunet-gns-proxy.c')
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index a4f665425..65139beb4 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -488,6 +488,7 @@ curl_download_prepare (); | |||
488 | * Callback to free content | 488 | * Callback to free content |
489 | * | 489 | * |
490 | * @param cls content to free | 490 | * @param cls content to free |
491 | * @param tc task context | ||
491 | */ | 492 | */ |
492 | static void | 493 | static void |
493 | mhd_content_free (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 494 | mhd_content_free (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
@@ -550,6 +551,7 @@ process_shorten (void* cls, const char* short_name) | |||
550 | * @param pos in buffer | 551 | * @param pos in buffer |
551 | * @param buf buffer | 552 | * @param buf buffer |
552 | * @param max space in buffer | 553 | * @param max space in buffer |
554 | * @return number of bytes written | ||
553 | */ | 555 | */ |
554 | static ssize_t | 556 | static ssize_t |
555 | mhd_content_cb (void *cls, | 557 | mhd_content_cb (void *cls, |
@@ -1277,6 +1279,8 @@ run_httpds () | |||
1277 | 1279 | ||
1278 | /** | 1280 | /** |
1279 | * schedule mhd | 1281 | * schedule mhd |
1282 | * | ||
1283 | * @param hd the daemon to run | ||
1280 | */ | 1284 | */ |
1281 | static void | 1285 | static void |
1282 | run_httpd (struct MhdHttpList *hd) | 1286 | run_httpd (struct MhdHttpList *hd) |
@@ -1550,7 +1554,12 @@ add_handle_to_mhd (struct GNUNET_NETWORK_Handle *h, struct MHD_Daemon *daemon) | |||
1550 | return MHD_add_connection (daemon, fd, addr, len); | 1554 | return MHD_add_connection (daemon, fd, addr, len); |
1551 | } | 1555 | } |
1552 | 1556 | ||
1553 | 1557 | /** | |
1558 | * Calculate size of file | ||
1559 | * | ||
1560 | * @param filename name of file | ||
1561 | * @return filesize or 0 on error | ||
1562 | */ | ||
1554 | static long | 1563 | static long |
1555 | get_file_size (const char* filename) | 1564 | get_file_size (const char* filename) |
1556 | { | 1565 | { |
@@ -1576,6 +1585,7 @@ get_file_size (const char* filename) | |||
1576 | * Read file in filename | 1585 | * Read file in filename |
1577 | * | 1586 | * |
1578 | * @param filename file to read | 1587 | * @param filename file to read |
1588 | * @param size pointer where filesize is stored | ||
1579 | * @return data | 1589 | * @return data |
1580 | */ | 1590 | */ |
1581 | static char* | 1591 | static char* |
@@ -1609,8 +1619,6 @@ load_file (const char* filename, unsigned int* size) | |||
1609 | return buffer; | 1619 | return buffer; |
1610 | } | 1620 | } |
1611 | 1621 | ||
1612 | /** SSL stuff **/ | ||
1613 | |||
1614 | /** | 1622 | /** |
1615 | * Load PEM key from file | 1623 | * Load PEM key from file |
1616 | * | 1624 | * |
@@ -2210,7 +2218,6 @@ do_shutdown (void *cls, | |||
2210 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 2218 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
2211 | "Shutting down...\n"); | 2219 | "Shutting down...\n"); |
2212 | 2220 | ||
2213 | MHD_fini (); | ||
2214 | gnutls_global_deinit (); | 2221 | gnutls_global_deinit (); |
2215 | 2222 | ||
2216 | if (GNUNET_SCHEDULER_NO_TASK != curl_download_task) | 2223 | if (GNUNET_SCHEDULER_NO_TASK != curl_download_task) |