examples: wget: Fix nxstyle issues
This commit is contained in:
parent
10386cf5b5
commit
78e8090842
@ -53,7 +53,8 @@
|
||||
* Preprocessor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Configuration Checks ******************************************************/
|
||||
/* Configuration Checks *****************************************************/
|
||||
|
||||
/* BEWARE:
|
||||
* There are other configuration settings needed in netutitls/wget/wgetc.s,
|
||||
* but there are default values for those so we cannot check them here.
|
||||
@ -88,6 +89,7 @@ static char g_iobuffer[512];
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: callback
|
||||
****************************************************************************/
|
||||
@ -114,7 +116,7 @@ int main(int argc, FAR char *argv[])
|
||||
uint8_t mac[IFHWADDRLEN];
|
||||
#endif
|
||||
|
||||
/* Many embedded network interfaces must have a software assigned MAC */
|
||||
/* Many embedded network interfaces must have a software assigned MAC */
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_WGET_NOMAC
|
||||
mac[0] = 0x00;
|
||||
|
@ -666,9 +666,10 @@ static int wget_base(FAR const char *url, FAR char *buffer, int buflen,
|
||||
nerr("ERROR: send failed: %d\n", errno);
|
||||
goto errout;
|
||||
}
|
||||
|
||||
len -= ret;
|
||||
}
|
||||
while(len > 0);
|
||||
while (len > 0);
|
||||
|
||||
/* Now loop to get the file sent in response to the GET. This
|
||||
* loop continues until either we read the end of file (nbytes == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user