Skip to content

Commit 88894d1

Browse files
author
Arto Kinnunen
committed
Follow Mbed OS coding style
1 parent f3db9a1 commit 88894d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

source/coap_security_handler.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ static int coap_security_handler_init(coap_security_t *sec)
103103
#endif
104104

105105
#if defined(MBEDTLS_PLATFORM_C)
106-
if (mbedtls_platform_setup(NULL) != 0)
106+
if (mbedtls_platform_setup(NULL) != 0) {
107107
return -1;
108+
}
108109
#endif /* MBEDTLS_PLATFORM_C */
109110

110111
mbedtls_ssl_init(&sec->_ssl);

test/coap-service/unittest/stub/mbedtls_stub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,14 @@ void mbedtls_strerror(int ret, char *buf, size_t buflen)
388388
{
389389
}
390390

391-
int mbedtls_platform_setup( mbedtls_platform_context *ctx )
391+
int mbedtls_platform_setup(mbedtls_platform_context *ctx)
392392
{
393393
(void)ctx;
394394

395-
return( 0 );
395+
return (0);
396396
}
397397

398-
void mbedtls_platform_teardown( mbedtls_platform_context *ctx )
398+
void mbedtls_platform_teardown(mbedtls_platform_context *ctx)
399399
{
400400
(void)ctx;
401401
}

0 commit comments

Comments
 (0)