remove cast from enum to int

This commit is contained in:
Jacob Barthelmeh
2016-06-29 14:28:36 -06:00
parent 0589fe0d39
commit 3f36a914da

View File

@ -1376,7 +1376,7 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap)
if (InitMutex(&ctx->countMutex) < 0) {
WOLFSSL_MSG("Mutex error on CTX init");
ctx->err = (int)CTX_INIT_MUTEX_E;
ctx->err = CTX_INIT_MUTEX_E;
return BAD_MUTEX_E;
}
@ -1541,7 +1541,7 @@ void FreeSSL_Ctx(WOLFSSL_CTX* ctx)
/* check error state, if mutex error code then mutex init failed but
* CTX was still malloc'd */
if (ctx->err == (int)CTX_INIT_MUTEX_E) {
if (ctx->err == CTX_INIT_MUTEX_E) {
SSL_CtxResourceFree(ctx);
XFREE(ctx, ctx->heap, DYNAMIC_TYPE_CTX);
}