summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-07-22 15:08:55 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2013-07-23 07:03:37 (GMT)
commit817053d49ef34552080202d480951ec893cd9fd6 (patch)
treefdbed548500a587320dec4c548bc589a1a49ed00 /unit
parentc75d61f6e288bc16519b549579fd4d1397399841 (diff)
downloadconnman-817053d49ef34552080202d480951ec893cd9fd6.tar.gz
connman-817053d49ef34552080202d480951ec893cd9fd6.tar.xz
unit: Whitespace cleanup
The coccinelle patch introduces some whitespace violiacense. Fix up most errors and warnings reported by checkpatch.
Diffstat (limited to 'unit')
-rw-r--r--unit/test-pbkdf2-sha1.c6
-rw-r--r--unit/test-prf-sha1.c6
2 files changed, 4 insertions, 8 deletions
diff --git a/unit/test-pbkdf2-sha1.c b/unit/test-pbkdf2-sha1.c
index 72c0fac..5c8e7f4 100644
--- a/unit/test-pbkdf2-sha1.c
+++ b/unit/test-pbkdf2-sha1.c
@@ -74,9 +74,8 @@ static void pbkdf2_test(gconstpointer data)
for (i = 0; i < key_len; i++)
sprintf(key + (i * 2), "%02x", output[i]);
- if (g_test_verbose()) {
+ if (g_test_verbose())
g_print("Result = %s\n", key);
- }
g_assert(strcmp(test->key, key) == 0);
}
@@ -228,9 +227,8 @@ static void psk_test(gconstpointer data)
for (i = 0; i < sizeof(output); i++)
sprintf(psk + (i * 2), "%02x", output[i]);
- if (g_test_verbose()) {
+ if (g_test_verbose())
g_print("Result = %s\n", psk);
- }
g_assert(strcmp(test->psk, psk) == 0);
}
diff --git a/unit/test-prf-sha1.c b/unit/test-prf-sha1.c
index c8ecb2f..c6a3787 100644
--- a/unit/test-prf-sha1.c
+++ b/unit/test-prf-sha1.c
@@ -51,9 +51,8 @@ static void prf_test(gconstpointer data)
prf_len = strlen(test->prf) / 2;
- if (g_test_verbose()) {
+ if (g_test_verbose())
g_print("PRF = %s (%d octects)\n", test->prf, prf_len);
- }
result = prf_sha1(test->key, test->key_len, test->prefix,
test->prefix_len, test->data, test->data_len,
@@ -64,9 +63,8 @@ static void prf_test(gconstpointer data)
for (i = 0; i < prf_len; i++)
sprintf(prf + (i * 2), "%02x", output[i]);
- if (g_test_verbose()) {
+ if (g_test_verbose())
g_print("Result = %s\n", prf);
- }
g_assert(strcmp(test->prf, prf) == 0);
}