summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Yang <paulyang.inf@gmail.com>2017-06-06 23:35:43 +0800
committerRich Salz <rsalz@openssl.org>2017-06-09 12:04:10 -0400
commitbd91e3c870402c4b10909c47082daece473d22ef (patch)
tree9e29571095ab06298da2b312b9c350781f55b8d1 /test
parent9a2dfc0febaf89403cdbd4bfdb2417fd3d055e95 (diff)
Fix a bundle of trailing spaces in several files
Signed-off-by: Paul Yang <paulyang.inf@gmail.com> Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3622)
Diffstat (limited to 'test')
-rw-r--r--test/destest.c2
-rw-r--r--test/lhash_test.c6
-rw-r--r--test/ossl_shim/include/openssl/base.h2
-rw-r--r--test/srptest.c6
-rw-r--r--test/ssl_test_ctx_test.c2
-rw-r--r--test/ssltestlib.c2
-rw-r--r--test/stack_test.c2
-rw-r--r--test/testutil.h2
8 files changed, 12 insertions, 12 deletions
diff --git a/test/destest.c b/test/destest.c
index 2aae1ca79a..d179692454 100644
--- a/test/destest.c
+++ b/test/destest.c
@@ -297,7 +297,7 @@ static char *pt(const unsigned char *p, char buf[DATA_BUF_SIZE])
ret[16] = '\0';
return ret;
}
-
+
static int test_des_ecb(int i)
{
DES_key_schedule ks;
diff --git a/test/lhash_test.c b/test/lhash_test.c
index b8127962c5..6aa21f2a92 100644
--- a/test/lhash_test.c
+++ b/test/lhash_test.c
@@ -80,7 +80,7 @@ static int test_int_lhash(void)
{ 999, 1 },
{ 37, 0 },
{ 1, 0 },
- { 34, 1 }
+ { 34, 1 }
};
const unsigned int n_dels = OSSL_NELEM(dels);
LHASH_OF(int) *h = lh_int_new(&int_hash, &int_cmp);
@@ -133,7 +133,7 @@ static int test_int_lhash(void)
TEST_info("lhash int doall %d", i);
goto end;
}
-
+
/* do_all_arg */
memset(int_found, 0, sizeof(int_found));
lh_int_doall_short(h, int_doall_arg, int_found);
@@ -142,7 +142,7 @@ static int test_int_lhash(void)
TEST_info("lhash int doall arg %d", i);
goto end;
}
-
+
/* delete */
for (i = 0; i < n_dels; i++) {
const int b = lh_int_delete(h, &dels[i].data) == NULL;
diff --git a/test/ossl_shim/include/openssl/base.h b/test/ossl_shim/include/openssl/base.h
index 7349273c38..a2f8de5a95 100644
--- a/test/ossl_shim/include/openssl/base.h
+++ b/test/ossl_shim/include/openssl/base.h
@@ -6,7 +6,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/test/srptest.c b/test/srptest.c
index 8e027b908a..3e3b589926 100644
--- a/test/srptest.c
+++ b/test/srptest.c
@@ -22,7 +22,7 @@ static void showbn(const char *name, const BIGNUM *bn)
{
BIO *b;
const char *text;
-
+
if (!TEST_ptr(b = BIO_new(BIO_s_mem())))
return;
BIO_write(b, name, strlen(name));
@@ -53,7 +53,7 @@ static int run_srp(const char *username, const char *client_pass,
unsigned char rand_tmp[RANDOM_SIZE];
/* use builtin 1024-bit params */
const SRP_gN *GN;
-
+
if (!TEST_ptr(GN = SRP_get_default_gN("1024")))
return 0;
@@ -158,7 +158,7 @@ static int run_srp_kat(void)
BIGNUM *Kserver = NULL;
/* use builtin 1024-bit params */
const SRP_gN *GN;
-
+
if (!TEST_ptr(GN = SRP_get_default_gN("1024")))
goto err;
BN_hex2bn(&s, "BEB25379D1A8581EB5A727673A2441EE");
diff --git a/test/ssl_test_ctx_test.c b/test/ssl_test_ctx_test.c
index 5022ce0f6e..e24f0fb2cf 100644
--- a/test/ssl_test_ctx_test.c
+++ b/test/ssl_test_ctx_test.c
@@ -199,7 +199,7 @@ static const char *bad_configurations[] = {
static int test_bad_configuration(int idx)
{
SSL_TEST_CTX *ctx;
-
+
if (!TEST_ptr_null(ctx = SSL_TEST_CTX_create(conf,
bad_configurations[idx]))) {
SSL_TEST_CTX_free(ctx);
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 1f74c95925..4ee0bae9b9 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -288,7 +288,7 @@ void bio_s_mempacket_test_free(void)
static int mempacket_test_new(BIO *bio)
{
MEMPACKET_TEST_CTX *ctx;
-
+
if (!TEST_ptr(ctx = OPENSSL_zalloc(sizeof(*ctx))))
return 0;
if (!TEST_ptr(ctx->pkts = sk_MEMPACKET_new_null())) {
diff --git a/test/stack_test.c b/test/stack_test.c
index 6d1cd91e9b..96870ce2de 100644
--- a/test/stack_test.c
+++ b/test/stack_test.c
@@ -196,7 +196,7 @@ static int test_uchar_stack(void)
sk_uchar_sort(r);
/* pop */
- for (i = 0; i < n; i++)
+ for (i = 0; i < n; i++)
if (!TEST_ptr_eq(sk_uchar_pop(s), v + i)) {
TEST_info("uchar pop %d", i);
goto end;
diff --git a/test/testutil.h b/test/testutil.h
index 48c4eb3677..0975e2b779 100644
--- a/test/testutil.h
+++ b/test/testutil.h
@@ -434,7 +434,7 @@ int test_end_file(STANZA *s);
/*
* Read a stanza from the test file. A stanza consists of a block
- * of lines of the form
+ * of lines of the form
* key = value
* The block is terminated by EOF or a blank line.
* Return 1 if found, 0 on EOF or error.