summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Ates <joseph.ates@msasafety.com>2016-02-10 12:16:17 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-02-10 13:18:11 +0100
commitc971d6e5c26549c421d7fc4cc2965cea4c628866 (patch)
treed8651c570d3ca3dce8f1e25fd4d90f27a9107f73
parentc995e0aa62805355c4c9fe7a21df4797591e9994 (diff)
downloadcmocka-c971d6e5c26549c421d7fc4cc2965cea4c628866.tar.gz
cmocka-c971d6e5c26549c421d7fc4cc2965cea4c628866.tar.bz2
cmocka-c971d6e5c26549c421d7fc4cc2965cea4c628866.zip
cmocka: Fix indentation
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/cmocka.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 4a1a613..4f13f21 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -1405,7 +1405,7 @@ static void expect_memory_setup(
const void * const memory, const size_t size,
const CheckParameterValue check_function, const int count) {
CheckMemoryData * const check_data =
- (CheckMemoryData*)malloc(sizeof(*check_data) + size);
+ (CheckMemoryData*)malloc(sizeof(*check_data) + size);
void * const mem = (void*)(check_data + 1);
declare_initialize_value_pointer_pointer(check_data_pointer, check_data);
assert_non_null(memory);
@@ -1905,7 +1905,7 @@ static int display_allocated_blocks(const ListNode * const check_point) {
for (node = check_point->next; node != head; node = node->next) {
const MallocBlockInfo * const block_info =
- (const MallocBlockInfo*)node->value;
+ (const MallocBlockInfo*)node->value;
assert_non_null(block_info);
if (!allocated_blocks) {
@@ -2947,7 +2947,7 @@ int _run_tests(const UnitTest * const tests, const size_t number_of_tests) {
* when a test setup occurs and popped on tear down.
*/
TestState* test_states =
- (TestState*)malloc(number_of_tests * sizeof(*test_states));
+ (TestState*)malloc(number_of_tests * sizeof(*test_states));
/* The number of test states which should be 0 at the end */
long number_of_test_states = 0;
/* Names of the tests that failed. */