netutils/webclient: Fix the coding style
This commit is contained in:
parent
66f6e5f048
commit
fb17471673
@ -428,7 +428,9 @@ static inline int wget_parsestatus(struct webclient_context *ctx,
|
||||
DEBUGASSERT(strlen(g_http10) == 8);
|
||||
DEBUGASSERT(strlen(g_http11) == 8);
|
||||
|
||||
if (ws->line[8] != ' ') /* SP before the status-code */
|
||||
/* SP before the status-code */
|
||||
|
||||
if (ws->line[8] != ' ')
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -443,7 +445,9 @@ static inline int wget_parsestatus(struct webclient_context *ctx,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (*ep != ' ') /* SP before reason-phrase */
|
||||
/* SP before reason-phrase */
|
||||
|
||||
if (*ep != ' ')
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -598,7 +602,10 @@ static inline int wget_parseheaders(struct webclient_context *ctx,
|
||||
*/
|
||||
|
||||
found = false;
|
||||
if (ndx > 0) /* Should always be true */
|
||||
|
||||
/* Should always be true */
|
||||
|
||||
if (ndx > 0)
|
||||
{
|
||||
ninfo("Got HTTP header line%s: %.*s\n",
|
||||
got_nl ? "" : " (truncated)",
|
||||
@ -817,7 +824,9 @@ static inline int wget_parsechunkheader(struct webclient_context *ctx,
|
||||
* our buffer is already full, so we start parsing it.
|
||||
*/
|
||||
|
||||
if (ndx > 0) /* Should always be true */
|
||||
/* Should always be true */
|
||||
|
||||
if (ndx > 0)
|
||||
{
|
||||
FAR char *semicolon;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user