summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_parse.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-01 12:10:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-01 12:10:09 -0600
commit05b1c4870a2ea0a44dd9f22dacadc2a769e743eb (patch)
treeb479c53bd46e95570963e308bb559a5304ba3e39 /apps/nshlib/nsh_parse.c
parentedb29aa64e325bc41f0feb8a8a784bdad483a0a6 (diff)
downloadnuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.tar.gz
nuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.tar.bz2
nuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.zip
Remove some warnings
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r--apps/nshlib/nsh_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c
index 68dca6c08..9b45b0e32 100644
--- a/apps/nshlib/nsh_parse.c
+++ b/apps/nshlib/nsh_parse.c
@@ -1306,8 +1306,8 @@ int nsh_parse(FAR struct nsh_vtbl_s *vtbl, char *cmdline)
#if CONFIG_NFILE_STREAMS > 0
FAR char *redirfile = NULL;
int oflags = 0;
-#endif
int fd = -1;
+#endif
int argc;
int ret;
@@ -1654,9 +1654,9 @@ int nsh_parse(FAR struct nsh_vtbl_s *vtbl, char *cmdline)
else
#endif
{
+#if CONFIG_NFILE_STREAMS > 0
uint8_t save[SAVE_SIZE];
-#if CONFIG_NFILE_STREAMS > 0
/* Handle redirection of output via a file descriptor */
if (vtbl->np.np_redirect)