mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
fix compiler warning
This commit is contained in:
parent
2179ef9fa9
commit
a6fb6b70c7
3 changed files with 15 additions and 9 deletions
|
|
@ -222,7 +222,7 @@ void *curl_dorealloc(void *ptr, size_t wantedsize,
|
|||
return NULL;
|
||||
|
||||
if(ptr)
|
||||
mem = (struct memdebug *)((char *)ptr - offsetof(struct memdebug, mem));
|
||||
mem = (void *)((char *)ptr - offsetof(struct memdebug, mem));
|
||||
|
||||
mem = (Curl_crealloc)(mem, size);
|
||||
if(source)
|
||||
|
|
@ -243,7 +243,7 @@ void curl_dofree(void *ptr, int line, const char *source)
|
|||
|
||||
assert(ptr != NULL);
|
||||
|
||||
mem = (struct memdebug *)((char *)ptr - offsetof(struct memdebug, mem));
|
||||
mem = (void *)((char *)ptr - offsetof(struct memdebug, mem));
|
||||
|
||||
/* destroy */
|
||||
memset(mem->mem, 0x13, mem->size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue