diff options
Diffstat (limited to 'src/gns/test_gns_proxy.c')
-rw-r--r-- | src/gns/test_gns_proxy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 13764d520..579de774f 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -189,7 +189,7 @@ copy_buffer (void *ptr, size_t size, size_t nmemb, void *ctx) | |||
189 | } | 189 | } |
190 | 190 | ||
191 | 191 | ||
192 | static int | 192 | static enum MHD_Result |
193 | mhd_ahc (void *cls, | 193 | mhd_ahc (void *cls, |
194 | struct MHD_Connection *connection, | 194 | struct MHD_Connection *connection, |
195 | const char *url, | 195 | const char *url, |
@@ -528,8 +528,6 @@ run (void *cls, | |||
528 | int | 528 | int |
529 | main (int argc, char *const *argv) | 529 | main (int argc, char *const *argv) |
530 | { | 530 | { |
531 | char *tmp_argv; | ||
532 | |||
533 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 531 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
534 | GNUNET_GETOPT_option_uint16 ('p', | 532 | GNUNET_GETOPT_option_uint16 ('p', |
535 | "port", | 533 | "port", |
@@ -559,7 +557,7 @@ main (int argc, char *const *argv) | |||
559 | } | 557 | } |
560 | if (GNUNET_OK != | 558 | if (GNUNET_OK != |
561 | GNUNET_STRINGS_get_utf8_args (argc, argv, | 559 | GNUNET_STRINGS_get_utf8_args (argc, argv, |
562 | &argc, &tmp_argv)) | 560 | &argc, &argv)) |
563 | return 2; | 561 | return 2; |
564 | GNUNET_log_setup ("gnunet-gns-proxy-test", | 562 | GNUNET_log_setup ("gnunet-gns-proxy-test", |
565 | "WARNING", | 563 | "WARNING", |
@@ -570,7 +568,7 @@ main (int argc, char *const *argv) | |||
570 | options, | 568 | options, |
571 | &run, NULL)) | 569 | &run, NULL)) |
572 | return 1; | 570 | return 1; |
573 | GNUNET_free (tmp_argv); | 571 | GNUNET_free_nz ((void*) argv); |
574 | return global_ret; | 572 | return global_ret; |
575 | } | 573 | } |
576 | 574 | ||