Commit f5426466 authored by Johny Mattsson's avatar Johny Mattsson
Browse files

Fixed includes after LWIP 1.4.0 upgrade.

parent 5d5be356
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include "digests.h" #include "digests.h"
#include "user_config.h" #include "user_config.h"
#include "rom.h" #include "rom.h"
#include "lwip/mem.h" #include "osapi.h"
#include "mem.h"
#include <string.h> #include <string.h>
#include <c_errno.h> #include <c_errno.h>
...@@ -108,7 +109,7 @@ int ICACHE_FLASH_ATTR crypto_hash (const digest_mech_info_t *mi, ...@@ -108,7 +109,7 @@ int ICACHE_FLASH_ATTR crypto_hash (const digest_mech_info_t *mi,
if (!mi) if (!mi)
return EINVAL; return EINVAL;
void *ctx = os_malloc (mi->ctx_size); void *ctx = (void *)os_malloc (mi->ctx_size);
if (!ctx) if (!ctx)
return ENOMEM; return ENOMEM;
...@@ -129,7 +130,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi, ...@@ -129,7 +130,7 @@ int ICACHE_FLASH_ATTR crypto_hmac (const digest_mech_info_t *mi,
if (!mi) if (!mi)
return EINVAL; return EINVAL;
void *ctx = os_malloc (mi->ctx_size); void *ctx = (void *)os_malloc (mi->ctx_size);
if (!ctx) if (!ctx)
return ENOMEM; return ENOMEM;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment