Skip to content

Commit

Permalink
Follow Mbed OS coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Arto Kinnunen committed Feb 25, 2019
1 parent f3db9a1 commit 88894d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/coap_security_handler.c
Expand Up @@ -103,8 +103,9 @@ static int coap_security_handler_init(coap_security_t *sec)
#endif

#if defined(MBEDTLS_PLATFORM_C)
if (mbedtls_platform_setup(NULL) != 0)
if (mbedtls_platform_setup(NULL) != 0) {
return -1;
}
#endif /* MBEDTLS_PLATFORM_C */

mbedtls_ssl_init(&sec->_ssl);
Expand Down
6 changes: 3 additions & 3 deletions test/coap-service/unittest/stub/mbedtls_stub.c
Expand Up @@ -388,14 +388,14 @@ void mbedtls_strerror(int ret, char *buf, size_t buflen)
{
}

int mbedtls_platform_setup( mbedtls_platform_context *ctx )
int mbedtls_platform_setup(mbedtls_platform_context *ctx)
{
(void)ctx;

return( 0 );
return (0);
}

void mbedtls_platform_teardown( mbedtls_platform_context *ctx )
void mbedtls_platform_teardown(mbedtls_platform_context *ctx)
{
(void)ctx;
}

0 comments on commit 88894d1

Please sign in to comment.