diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 12:10:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 12:10:09 -0600 |
commit | 05b1c4870a2ea0a44dd9f22dacadc2a769e743eb (patch) | |
tree | b479c53bd46e95570963e308bb559a5304ba3e39 /apps/nshlib/nsh_fscmds.c | |
parent | edb29aa64e325bc41f0feb8a8a784bdad483a0a6 (diff) | |
download | nuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.tar.gz nuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.tar.bz2 nuttx-05b1c4870a2ea0a44dd9f22dacadc2a769e743eb.zip |
Remove some warnings
Diffstat (limited to 'apps/nshlib/nsh_fscmds.c')
-rw-r--r-- | apps/nshlib/nsh_fscmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c index 26391fa3f..48dad2082 100644 --- a/apps/nshlib/nsh_fscmds.c +++ b/apps/nshlib/nsh_fscmds.c @@ -104,6 +104,7 @@ typedef int (*direntry_handler_t)(FAR struct nsh_vtbl_s *, const char *, * Private Data ****************************************************************************/ +#if CONFIG_NFILE_DESCRIPTORS > 0 /* Common buffer for file I/O. Note the use of this common buffer precludes * multiple copies of NSH running concurrently. It should be allocated per * NSH instance and retained in the "vtbl" as is done for the telnet @@ -111,6 +112,7 @@ typedef int (*direntry_handler_t)(FAR struct nsh_vtbl_s *, const char *, */ static char g_iobuffer[IOBUFFERSIZE]; +#endif /**************************************************************************** * Public Data @@ -142,6 +144,7 @@ static void trim_dir(char *arg) * Name: nsh_getdirpath ****************************************************************************/ +#if CONFIG_NFILE_DESCRIPTORS > 0 static char *nsh_getdirpath(const char *path, const char *file) { /* Handle the case where all that is left is '/' */ @@ -158,6 +161,7 @@ static char *nsh_getdirpath(const char *path, const char *file) g_iobuffer[PATH_MAX] = '\0'; return strdup(g_iobuffer); } +#endif /**************************************************************************** * Name: foreach_direntry |