diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 20:39:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-03-28 20:39:20 +0000 |
commit | 55849f9eccefbfa62dcdf5891e571c335de15736 (patch) | |
tree | 920d80a45c2658104c137d11fe72a3db0b81b3f7 /nuttx/examples/nsh | |
parent | b2240ee52a358de3ec99b8be85e9c43a402eb922 (diff) | |
download | px4-nuttx-55849f9eccefbfa62dcdf5891e571c335de15736.tar.gz px4-nuttx-55849f9eccefbfa62dcdf5891e571c335de15736.tar.bz2 px4-nuttx-55849f9eccefbfa62dcdf5891e571c335de15736.zip |
Partial testing of wget command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1660 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh')
-rw-r--r-- | nuttx/examples/nsh/nsh_main.c | 2 | ||||
-rw-r--r-- | nuttx/examples/nsh/nsh_netcmds.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/examples/nsh/nsh_main.c b/nuttx/examples/nsh/nsh_main.c index edcdf131d..53e7d5efd 100644 --- a/nuttx/examples/nsh/nsh_main.c +++ b/nuttx/examples/nsh/nsh_main.c @@ -319,7 +319,7 @@ static const struct cmdmap_s g_cmdmap[] = #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0 # ifndef CONFIG_EXAMPLES_NSH_DISABLE_GET - { "wget", cmd_wget, 2, 3, "[-o <local-path>] <url>" }, + { "wget", cmd_wget, 2, 4, "[-o <local-path>] <url>" }, # endif #endif diff --git a/nuttx/examples/nsh/nsh_netcmds.c b/nuttx/examples/nsh/nsh_netcmds.c index f9e0acc6c..3d64e662f 100644 --- a/nuttx/examples/nsh/nsh_netcmds.c +++ b/nuttx/examples/nsh/nsh_netcmds.c @@ -740,7 +740,7 @@ int cmd_wget(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) /* And perform the wget */ - ret = wget(argv[1], buffer, 512, wget_callback, (FAR void *)fd); + ret = wget(url, buffer, 512, wget_callback, (FAR void *)fd); if (ret < 0) { nsh_output(vtbl, g_fmtcmdfailed, argv[0], "wget", NSH_ERRNO); |