format codes

master
Meco Man 3 years ago
parent 686a3addfe
commit 205e8f581e

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@ -78,7 +78,7 @@ static int webclient_get_comm(const char *uri)
do
{
bytes_read = webclient_read(session, (void *)buffer,
bytes_read = webclient_read(session, (void *)buffer,
content_length - content_pos > GET_RESP_BUFSZ ?
GET_RESP_BUFSZ : content_length - content_pos);
if (bytes_read <= 0)
@ -131,7 +131,7 @@ static int webclient_get_smpl(const char *uri)
rt_kprintf("%c", response[index]);
}
rt_kprintf("\n");
if (response)
{
web_free(response);
@ -202,7 +202,7 @@ int webclient_get_test(int argc, char **argv)
{
web_free(uri);
}
return RT_EOK;
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@ -183,7 +183,7 @@ int webclient_post_test(int argc, char **argv)
rt_kprintf("web_post_test -s [uri] - webclient simplify post request test.\n");
return -RT_ERROR;
}
if (uri)
{
web_free(uri);

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2019, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@ -216,11 +216,11 @@ static int webclient_resolve_address(struct webclient_session *session, struct a
port_ptr = rt_strstr(host_addr + host_addr_len, ":");
if (port_ptr && (!path_ptr || (port_ptr < path_ptr)))
{
if (!path_ptr)
if (!path_ptr)
{
rt_strcpy(port_str, port_ptr + 1);
}
else
else
{
int port_len = path_ptr - port_ptr - 1;
rt_strncpy(port_str, port_ptr + 1, port_len);

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*

Loading…
Cancel
Save