diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-11-05 09:50:01 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-11-05 09:50:01 +0100 |
commit | e2a5fa157eb1c5fcc946a4690553497d2cb04c09 (patch) | |
tree | 159d5585846d1ffb7f06d03f4c4f0e46a1d487ba /tests/chainverify.c | |
parent | 91b652d36dcb57db89d7edab6caa88d211f7d859 (diff) | |
download | gnutls-e2a5fa157eb1c5fcc946a4690553497d2cb04c09.tar.gz |
Indent code.
Diffstat (limited to 'tests/chainverify.c')
-rw-r--r-- | tests/chainverify.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/chainverify.c b/tests/chainverify.c index 13d47103b7..0407d14156 100644 --- a/tests/chainverify.c +++ b/tests/chainverify.c @@ -37,7 +37,7 @@ current time. This should work fine on systems where the library call to time is resolved at run-time. */ time_t -time (time_t *t) +time (time_t * t) { time_t then = 1256803113; @@ -779,16 +779,16 @@ main (int argc, char *argv[]) gnutls_datum_t tmp; size_t j; - printf ("Chain '%s' (%d)...\n", chains[i].name, (int)i); + printf ("Chain '%s' (%d)...\n", chains[i].name, (int) i); for (j = 0; chains[i].chain[j]; j++) { - printf ("\tAdding certificate %d...", (int)j); + printf ("\tAdding certificate %d...", (int) j); ret = gnutls_x509_crt_init (&certs[j]); if (ret < 0) - error (EXIT_FAILURE, 0, "gnutls_x509_crt_init[%d,%d]: %s", (int)i, (int)j, - gnutls_strerror (ret)); + error (EXIT_FAILURE, 0, "gnutls_x509_crt_init[%d,%d]: %s", + (int) i, (int) j, gnutls_strerror (ret)); tmp.data = (char *) chains[i].chain[j]; tmp.size = strlen (chains[i].chain[j]); @@ -796,11 +796,11 @@ main (int argc, char *argv[]) ret = gnutls_x509_crt_import (certs[j], &tmp, GNUTLS_X509_FMT_PEM); printf ("done\n"); if (ret < 0) - error (EXIT_FAILURE, 0, "gnutls_x509_crt_import[%d,%d]: %s", (int)i, (int)j, - gnutls_strerror (ret)); + error (EXIT_FAILURE, 0, "gnutls_x509_crt_import[%d,%d]: %s", + (int) i, (int) j, gnutls_strerror (ret)); gnutls_x509_crt_print (certs[j], GNUTLS_CRT_PRINT_ONELINE, &tmp); - printf ("\tCertificate %d: %.*s\n", (int)j, tmp.size, tmp.data); + printf ("\tCertificate %d: %.*s\n", (int) j, tmp.size, tmp.data); gnutls_free (tmp.data); } |