Changes needed for clean ez80 compile with ZDS toolchain

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5147 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-09-13 19:33:47 +00:00
parent bffae74f54
commit e136f3a64e
2 changed files with 3 additions and 2 deletions

View File

@ -97,9 +97,10 @@
int nsh_consolemain(int argc, char *argv[]) int nsh_consolemain(int argc, char *argv[])
{ {
FAR struct console_stdio_s *pstate = nsh_newconsole(); FAR struct console_stdio_s *pstate = nsh_newconsole();
DEBUGASSERT(pstate);
int ret; int ret;
DEBUGASSERT(pstate);
/* If we are using a USB serial console, then we will have to wait for the /* If we are using a USB serial console, then we will have to wait for the
* USB to be connected to the host. * USB to be connected to the host.
*/ */

View File

@ -199,6 +199,7 @@ int cmd_mount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
FAR char *target; FAR char *target;
FAR char *filesystem = NULL; FAR char *filesystem = NULL;
bool badarg = false; bool badarg = false;
int option;
int ret; int ret;
/* The mount command behaves differently if no parameters are provided */ /* The mount command behaves differently if no parameters are provided */
@ -214,7 +215,6 @@ int cmd_mount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
* logic just sets 'badarg' and continues. * logic just sets 'badarg' and continues.
*/ */
int option;
while ((option = getopt(argc, argv, ":t:")) != ERROR) while ((option = getopt(argc, argv, ":t:")) != ERROR)
{ {
switch (option) switch (option)