aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/perf_crypto_hash.c2
-rw-r--r--src/util/test_crypto_rsa.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/util/perf_crypto_hash.c b/src/util/perf_crypto_hash.c
index a6f6ba340..76ba24be0 100644
--- a/src/util/perf_crypto_hash.c
+++ b/src/util/perf_crypto_hash.c
@@ -57,7 +57,7 @@ main (int argc, char *argv[])
57 start = GNUNET_TIME_absolute_get (); 57 start = GNUNET_TIME_absolute_get ();
58 perfHash (); 58 perfHash ();
59 printf ("Hash perf took %llu ms\n", 59 printf ("Hash perf took %llu ms\n",
60 GNUNET_TIME_absolute_get_duration (start).value); 60 (unsigned long long) GNUNET_TIME_absolute_get_duration (start).value);
61 return 0; 61 return 0;
62} 62}
63 63
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c
index 4456d68f4..93e6e2098 100644
--- a/src/util/test_crypto_rsa.c
+++ b/src/util/test_crypto_rsa.c
@@ -76,7 +76,9 @@ testEncryptDecrypt ()
76 if (strncmp (TESTSTRING, result, strlen (TESTSTRING)) != 0) 76 if (strncmp (TESTSTRING, result, strlen (TESTSTRING)) != 0)
77 { 77 {
78 printf ("%s != %.*s - testEncryptDecrypt failed!\n", 78 printf ("%s != %.*s - testEncryptDecrypt failed!\n",
79 TESTSTRING, MAX_TESTVAL, result); 79 TESTSTRING,
80 (int) MAX_TESTVAL,
81 result);
80 ok++; 82 ok++;
81 continue; 83 continue;
82 } 84 }
@@ -273,7 +275,7 @@ testSignPerformance ()
273 } 275 }
274 } 276 }
275 printf ("%d RSA sign operations %llu ms\n", ITER, 277 printf ("%d RSA sign operations %llu ms\n", ITER,
276 GNUNET_TIME_absolute_get_duration (start).value); 278 (unsigned long long) GNUNET_TIME_absolute_get_duration (start).value);
277 GNUNET_CRYPTO_rsa_key_free (hostkey); 279 GNUNET_CRYPTO_rsa_key_free (hostkey);
278 return ok; 280 return ok;
279} 281}