diff options
Diffstat (limited to 'src/testing/list-keys.c')
-rw-r--r-- | src/testing/list-keys.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/list-keys.c b/src/testing/list-keys.c index 1c469adcc..1fd46ebf2 100644 --- a/src/testing/list-keys.c +++ b/src/testing/list-keys.c | |||
@@ -72,7 +72,8 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
72 | PRINTF ("Max keys %u reached\n", nmax); | 72 | PRINTF ("Max keys %u reached\n", nmax); |
73 | break; | 73 | break; |
74 | } | 74 | } |
75 | (void) memcpy (&pkey, data + (cnt * GNUNET_TESTING_HOSTKEYFILESIZE), | 75 | GNUNET_memcpy (&pkey, |
76 | data + (cnt * GNUNET_TESTING_HOSTKEYFILESIZE), | ||
76 | GNUNET_TESTING_HOSTKEYFILESIZE); | 77 | GNUNET_TESTING_HOSTKEYFILESIZE); |
77 | GNUNET_CRYPTO_eddsa_key_get_public (&pkey, &id.public_key); | 78 | GNUNET_CRYPTO_eddsa_key_get_public (&pkey, &id.public_key); |
78 | PRINTF ("Key %u: %s\n", cnt, GNUNET_i2s_full (&id)); | 79 | PRINTF ("Key %u: %s\n", cnt, GNUNET_i2s_full (&id)); |
@@ -98,7 +99,7 @@ int main (int argc, char *argv[]) | |||
98 | 99 | ||
99 | result = GNUNET_SYSERR; | 100 | result = GNUNET_SYSERR; |
100 | nkeys = 10; | 101 | nkeys = 10; |
101 | ret = | 102 | ret = |
102 | GNUNET_PROGRAM_run (argc, argv, "list-keys", "Lists the peer IDs corresponding to the given keys file\n", | 103 | GNUNET_PROGRAM_run (argc, argv, "list-keys", "Lists the peer IDs corresponding to the given keys file\n", |
103 | option, &run, NULL); | 104 | option, &run, NULL); |
104 | if (GNUNET_OK != ret) | 105 | if (GNUNET_OK != ret) |