summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-08-08 13:22:52 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-08-08 13:22:52 +0200
commit411da700dd0ff36573f581650ae457fdcc692f31 (patch)
treed7a476dc81ae8e85f1efc8b59b7ca63f8e488d01 /src
parent564a1945e84430e18c0c11e04492ed0fe5126ea2 (diff)
-make new cmd tests experimental (segfalting); fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/identity/identity_api.c4
-rw-r--r--src/transport/Makefile.am2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 3bbe0b957..22371f91a 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1236,14 +1236,12 @@ GNUNET_IDENTITY_public_key_from_string (const char *str,
struct GNUNET_IDENTITY_PublicKey *key)
{
enum GNUNET_GenericReturnValue ret;
- enum GNUNET_IDENTITY_KeyType ktype;
ret = GNUNET_STRINGS_string_to_data (str,
strlen (str),
key,
sizeof (*key));
if (GNUNET_OK != ret)
return GNUNET_SYSERR;
- ktype = ntohl (key->type);
return GNUNET_OK;
}
@@ -1254,14 +1252,12 @@ GNUNET_IDENTITY_private_key_from_string (const char *str,
struct GNUNET_IDENTITY_PrivateKey *key)
{
enum GNUNET_GenericReturnValue ret;
- enum GNUNET_IDENTITY_KeyType ktype;
ret = GNUNET_STRINGS_string_to_data (str,
strlen (str),
key,
sizeof (*key));
if (GNUNET_OK != ret)
return GNUNET_SYSERR;
- ktype = ntohl (key->type);
return GNUNET_OK;
}
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 55a338729..0782a631b 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -647,7 +647,6 @@ endif
if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
TESTS = \
- test_transport_api_cmd_simple_send \
test_transport_address_switch_tcp \
$(HTTP_SWITCH) \
$(HTTPS_SWITCH) \
@@ -707,6 +706,7 @@ test_transport_api_slow_ats
endif
if HAVE_EXPERIMENTAL
TESTS += \
+ test_transport_api_cmd_simple_send \
test_transport_address_switch_udp \
test_plugin_udp \
test_transport_api_udp \