diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-08 18:54:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-08 18:54:08 +0000 |
commit | a8e3c5873feed7a356f503af48669cb043d80e19 (patch) | |
tree | dfb17ab9ea9e77d3acdb7f24511ccfa58e892c5f | |
parent | e1e86e290710ab2f953d62a504feebdf8ddfe56f (diff) | |
download | gnunet-a8e3c5873feed7a356f503af48669cb043d80e19.tar.gz gnunet-a8e3c5873feed7a356f503af48669cb043d80e19.zip |
nitpicks
-rw-r--r-- | src/util/perf_crypto_hash.c | 2 | ||||
-rw-r--r-- | src/util/test_crypto_rsa.c | 6 |
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 | } |