Skip to content

Commit 36d36ce

Browse files
author
Tero Heinonen
authored
Fixed compiler warnings (ARMmbed#98)
Fixed following two compiler warnings: 'simple_cookie_check' defined but not used 'simple_cookie_write' defined but not used
1 parent f40072f commit 36d36ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/coap_security_handler.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ void coap_security_destroy(coap_security_t *sec){
196196
}
197197
}
198198

199+
#ifdef MBEDTLS_SSL_SRV_C
199200
/**** Random number functions ****/
200201

201202
/**
@@ -265,6 +266,7 @@ static int simple_cookie_check(void *ctx,
265266
}
266267
return 0;
267268
}
269+
#endif // MBEDTLS_SSL_SRV_C
268270

269271
/**** Key export function ****/
270272
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)

0 commit comments

Comments
 (0)