Skip to content

Commit 9972c42

Browse files
committed
Format sgx_platform.c with clang-format-14
1 parent 8486fcb commit 9972c42

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

core/shared/platform/linux-sgx/sgx_platform.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ os_is_handle_valid(os_file_handle *handle)
132132
#endif
133133

134134
static void *
135-
os_mmap_internal(void *hint, size_t size, int prot, int flags, os_file_handle file, bool clear)
135+
os_mmap_internal(void *hint, size_t size, int prot, int flags,
136+
os_file_handle file, bool clear)
136137
{
137138
int mprot = 0;
138139
uint64 aligned_size, page_size;
@@ -192,8 +193,9 @@ os_mmap(void *hint, size_t size, int prot, int flags, os_file_handle file)
192193
void *
193194
os_mremap(void *old_addr, size_t old_size, size_t new_size)
194195
{
195-
void *new_memory = os_mmap_internal(NULL, new_size, MMAP_PROT_WRITE | MMAP_PROT_READ,
196-
0, os_get_invalid_handle(), false);
196+
void *new_memory =
197+
os_mmap_internal(NULL, new_size, MMAP_PROT_WRITE | MMAP_PROT_READ, 0,
198+
os_get_invalid_handle(), false);
197199
if (!new_memory) {
198200
return NULL;
199201
}
@@ -243,8 +245,10 @@ os_mprotect(void *addr, size_t size, int prot)
243245

244246
void
245247
os_dcache_flush(void)
246-
{}
248+
{
249+
}
247250

248251
void
249252
os_icache_flush(void *start, size_t len)
250-
{}
253+
{
254+
}

0 commit comments

Comments
 (0)