diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-07-05 23:28:07 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-07-05 23:28:07 +0200 |
commit | 4ae4bcb747b95d1ad296a55a3802a8a35437d845 (patch) | |
tree | cf1d7148e5c3aa98d96f80fb9bb9fcf82921444f | |
parent | 0b08174e0192dfa5b514263d2dd6bcb79391d07c (diff) | |
download | gnunet-4ae4bcb747b95d1ad296a55a3802a8a35437d845.tar.gz gnunet-4ae4bcb747b95d1ad296a55a3802a8a35437d845.zip |
-fix: failing tests
-rw-r--r-- | src/gns/test_gns_proxy.c | 6 | ||||
-rw-r--r-- | src/revocation/test_revocation.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index c0002673b..13764d520 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -528,6 +528,8 @@ 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 | |||
531 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 533 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
532 | GNUNET_GETOPT_option_uint16 ('p', | 534 | GNUNET_GETOPT_option_uint16 ('p', |
533 | "port", | 535 | "port", |
@@ -557,7 +559,7 @@ main (int argc, char *const *argv) | |||
557 | } | 559 | } |
558 | if (GNUNET_OK != | 560 | if (GNUNET_OK != |
559 | GNUNET_STRINGS_get_utf8_args (argc, argv, | 561 | GNUNET_STRINGS_get_utf8_args (argc, argv, |
560 | &argc, &argv)) | 562 | &argc, &tmp_argv)) |
561 | return 2; | 563 | return 2; |
562 | GNUNET_log_setup ("gnunet-gns-proxy-test", | 564 | GNUNET_log_setup ("gnunet-gns-proxy-test", |
563 | "WARNING", | 565 | "WARNING", |
@@ -568,7 +570,7 @@ main (int argc, char *const *argv) | |||
568 | options, | 570 | options, |
569 | &run, NULL)) | 571 | &run, NULL)) |
570 | return 1; | 572 | return 1; |
571 | GNUNET_free ((char *) argv); | 573 | GNUNET_free (tmp_argv); |
572 | return global_ret; | 574 | return global_ret; |
573 | } | 575 | } |
574 | 576 | ||
diff --git a/src/revocation/test_revocation.c b/src/revocation/test_revocation.c index 1c2efa60f..b65567d79 100644 --- a/src/revocation/test_revocation.c +++ b/src/revocation/test_revocation.c | |||
@@ -141,11 +141,11 @@ revocation_cb (void *cls, enum GNUNET_GenericReturnValue is_valid) | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||
144 | struct GNUNET_REVOCATION_Pow proof_of_work; | ||
145 | 144 | ||
145 | static struct GNUNET_REVOCATION_PowP proof_of_work; | ||
146 | 146 | ||
147 | static void | 147 | static void |
148 | ego_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego) | 148 | ego_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego) |
149 | { | 149 | { |
150 | static int completed = 0; | 150 | static int completed = 0; |
151 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; | 151 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; |