forked from wolfSSL/wolfssl
Fix unused parameter when XMALLOC doesn't use params
This commit is contained in:
@ -964,8 +964,8 @@ int wolfIO_DecodeUrl(const char* url, int urlSz, char* outName, char* outPath,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf, int* recvBufSz,
|
static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf,
|
||||||
int chunkSz, char* start, int len, int dynType, void* heap)
|
int* recvBufSz, int chunkSz, char* start, int len, int dynType, void* heap)
|
||||||
{
|
{
|
||||||
byte* newRecvBuf = NULL;
|
byte* newRecvBuf = NULL;
|
||||||
int newRecvSz = *recvBufSz + chunkSz;
|
int newRecvSz = *recvBufSz + chunkSz;
|
||||||
@ -976,6 +976,9 @@ static int wolfIO_HttpProcessResponseBuf(int sfd, byte **recvBuf, int* recvBufSz
|
|||||||
printf("HTTP Chunk %d->%d\n", *recvBufSz, chunkSz);
|
printf("HTTP Chunk %d->%d\n", *recvBufSz, chunkSz);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(void)heap;
|
||||||
|
(void)dynType;
|
||||||
|
|
||||||
newRecvBuf = (byte*)XMALLOC(newRecvSz, heap, dynType);
|
newRecvBuf = (byte*)XMALLOC(newRecvSz, heap, dynType);
|
||||||
if (newRecvBuf == NULL) {
|
if (newRecvBuf == NULL) {
|
||||||
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf malloc failed");
|
WOLFSSL_MSG("wolfIO_HttpProcessResponseBuf malloc failed");
|
||||||
|
Reference in New Issue
Block a user