Skip to content

Commit

Permalink
unit: Whitespace cleanup
Browse files Browse the repository at this point in the history
The coccinelle patch introduces some whitespace violiacense.
Fix up most errors and warnings reported by checkpatch.
  • Loading branch information
Daniel Wagner committed Jul 23, 2013
1 parent c75d61f commit 817053d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions unit/test-pbkdf2-sha1.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down
6 changes: 2 additions & 4 deletions unit/test-prf-sha1.c
Expand Up @@ -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,
Expand All @@ -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);
}
Expand Down

0 comments on commit 817053d

Please sign in to comment.