zephyr: use indentation consistent across mcuboot
The original Zephyr platform support files use tabs for indentation
(to match the Zephyr project). Since this code is all together, and
will be used as the basis for other platforms, fix this indentation to
match that used by the rest of mynewt.
This change is clean with respect to "git show -b", and only changes
the indentation of the beginning of lines.
diff --git a/boot/zephyr/os.c b/boot/zephyr/os.c
index e73edaa..3b910d5 100644
--- a/boot/zephyr/os.c
+++ b/boot/zephyr/os.c
@@ -28,18 +28,18 @@
/* D(void *os_malloc(size_t size)) */
void *os_calloc(size_t nelem, size_t size)
{
- /* Note that this doesn't check for overflow. Assume the
- * calls only come from within the app. */
- size_t total = nelem * size;
- void *buf = k_malloc(total);
- if (buf)
- memset(buf, 0, total);
- return buf;
+ /* Note that this doesn't check for overflow. Assume the
+ * calls only come from within the app. */
+ size_t total = nelem * size;
+ void *buf = k_malloc(total);
+ if (buf)
+ memset(buf, 0, total);
+ return buf;
}
void os_free(void *ptr)
{
- k_free(ptr);
+ k_free(ptr);
}
/*
@@ -47,5 +47,5 @@
*/
void os_heap_init(void)
{
- mbedtls_platform_set_calloc_free(os_calloc, os_free);
+ mbedtls_platform_set_calloc_free(os_calloc, os_free);
}