Fixed compiler warnings.
This commit is contained in:
parent
8d61a10a74
commit
d251d12f6f
@ -59,7 +59,7 @@ int netlib_parseurl(FAR const char *str, FAR struct url_s *url)
|
|||||||
{
|
{
|
||||||
FAR const char *src = str;
|
FAR const char *src = str;
|
||||||
FAR char *dest;
|
FAR char *dest;
|
||||||
int bytesleft;
|
size_t bytesleft;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
size_t pathlen;
|
size_t pathlen;
|
||||||
|
|
||||||
|
@ -285,6 +285,7 @@ static int webclient_static_body_func(FAR void *buffer,
|
|||||||
size_t reqsize,
|
size_t reqsize,
|
||||||
FAR void *ctx)
|
FAR void *ctx)
|
||||||
{
|
{
|
||||||
|
UNUSED(buffer);
|
||||||
*datap = ctx;
|
*datap = ctx;
|
||||||
*sizep = reqsize;
|
*sizep = reqsize;
|
||||||
return 0;
|
return 0;
|
||||||
@ -798,6 +799,8 @@ static inline int wget_parsechunkheader(struct webclient_context *ctx,
|
|||||||
int ndx;
|
int ndx;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
|
UNUSED(ctx);
|
||||||
|
|
||||||
offset = ws->offset;
|
offset = ws->offset;
|
||||||
ndx = ws->ndx;
|
ndx = ws->ndx;
|
||||||
|
|
||||||
@ -908,6 +911,8 @@ static inline int wget_parsechunkenddata(struct webclient_context *ctx,
|
|||||||
int ndx;
|
int ndx;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
|
UNUSED(ctx);
|
||||||
|
|
||||||
offset = ws->offset;
|
offset = ws->offset;
|
||||||
ndx = ws->ndx;
|
ndx = ws->ndx;
|
||||||
|
|
||||||
@ -966,6 +971,8 @@ static inline int wget_parsechunktrailer(struct webclient_context *ctx,
|
|||||||
int ndx;
|
int ndx;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
|
UNUSED(ctx);
|
||||||
|
|
||||||
offset = ws->offset;
|
offset = ws->offset;
|
||||||
ndx = ws->ndx;
|
ndx = ws->ndx;
|
||||||
|
|
||||||
@ -1871,7 +1878,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
|
|||||||
|
|
||||||
DEBUGASSERT(bytes_to_send <= ws->state_len);
|
DEBUGASSERT(bytes_to_send <= ws->state_len);
|
||||||
ssize_t ssz = webclient_conn_send(conn,
|
ssize_t ssz = webclient_conn_send(conn,
|
||||||
ws->data_buffer +
|
(char *)ws->data_buffer +
|
||||||
ws->state_offset,
|
ws->state_offset,
|
||||||
bytes_to_send);
|
bytes_to_send);
|
||||||
if (ssz < 0)
|
if (ssz < 0)
|
||||||
@ -1891,7 +1898,7 @@ int webclient_perform(FAR struct webclient_context *ctx)
|
|||||||
ws->state_len -= ssz;
|
ws->state_len -= ssz;
|
||||||
ws->state_offset += ssz;
|
ws->state_offset += ssz;
|
||||||
DEBUGASSERT(ws->state_offset <= ws->data_len);
|
DEBUGASSERT(ws->state_offset <= ws->data_len);
|
||||||
if (ws->state_offset == ws->data_len)
|
if ((size_t)ws->state_offset == ws->data_len)
|
||||||
{
|
{
|
||||||
ws->data_buffer = NULL;
|
ws->data_buffer = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user