Skip to content

Commit

Permalink
Fix C++ compatibility of newly added function lwip_memcmp_consttime()
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsimon committed Jan 9, 2024
1 parent c167a54 commit 347054b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/def.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ lwip_itoa(char *result, size_t bufsize, int number)
int lwip_memcmp_consttime(const void* s1, const void* s2, size_t len)
{
size_t i;
const unsigned char* a1 = s1;
const unsigned char* a2 = s2;
const unsigned char* a1 = (const unsigned char*)s1;
const unsigned char* a2 = (const unsigned char*)s2;
unsigned char ret = 0;

for (i = 0; i < len; i++) {
Expand Down

0 comments on commit 347054b

Please sign in to comment.