aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-25 21:42:11 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-25 21:42:11 +0000
commit78ad97319349e9881653684f276dd620a0a423e9 (patch)
treecded8f0063f6848429706a36bd51174e62417b7e /src/testing/testing.c
parentb968c5926b205c3cdd467474753746ef21522b32 (diff)
downloadgnunet-78ad97319349e9881653684f276dd620a0a423e9.tar.gz
gnunet-78ad97319349e9881653684f276dd620a0a423e9.zip
-misc fixes based on cppcheck
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r--src/testing/testing.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 8f32d2409..8502809f3 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -687,7 +687,7 @@ GNUNET_TESTING_release_port (struct GNUNET_TESTING_System *system,
687 * GNUnet source code. 687 * GNUnet source code.
688 * 688 *
689 * This is primarily a helper function used internally 689 * This is primarily a helper function used internally
690 * by 'GNUNET_TESTING_peer_configure'. 690 * by #GNUNET_TESTING_peer_configure.
691 * 691 *
692 * @param system the testing system handle 692 * @param system the testing system handle
693 * @param key_number desired pre-created hostkey to obtain 693 * @param key_number desired pre-created hostkey to obtain
@@ -716,12 +716,6 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system,
716 system->hostkeys_data + 716 system->hostkeys_data +
717 (key_number * GNUNET_TESTING_HOSTKEYFILESIZE), 717 (key_number * GNUNET_TESTING_HOSTKEYFILESIZE),
718 GNUNET_TESTING_HOSTKEYFILESIZE); 718 GNUNET_TESTING_HOSTKEYFILESIZE);
719 if (NULL == private_key)
720 {
721 LOG (GNUNET_ERROR_TYPE_ERROR,
722 _("Error while decoding key %u\n"), key_number);
723 return NULL;
724 }
725 GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key); 719 GNUNET_CRYPTO_ecc_key_get_public_for_signature (private_key, &public_key);
726 GNUNET_CRYPTO_hash (&public_key, 720 GNUNET_CRYPTO_hash (&public_key,
727 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey), 721 sizeof (struct GNUNET_CRYPTO_EccPublicSignKey),