mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 06:39:01 +08:00
Add wget command to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1657 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -404,7 +404,7 @@ exit:
|
||||
****************************************************************************/
|
||||
|
||||
int wget(FAR const char *url, FAR char *buffer, int buflen,
|
||||
wget_callback_t callback)
|
||||
wget_callback_t callback, FAR void *arg)
|
||||
{
|
||||
struct sockaddr_in server;
|
||||
struct wget_s ws;
|
||||
@@ -559,7 +559,7 @@ int wget(FAR const char *url, FAR char *buffer, int buflen,
|
||||
{
|
||||
/* Let the client decide what to do with the received file */
|
||||
|
||||
callback(&ws.buffer, ws.offset, ws.datend, &buflen);
|
||||
callback(&ws.buffer, ws.offset, ws.datend, &buflen, arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user