summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/us7032evb1
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-10 18:08:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-10 18:08:49 -0600
commit6db1f6f71c8867cbae3a2c5597b01f321064a370 (patch)
treebd0b760c6467a0b528b7b29480f944c99c186693 /nuttx/configs/us7032evb1
parent07d355e8f77afbc04ea94089071b0154e747acec (diff)
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'nuttx/configs/us7032evb1')
-rw-r--r--nuttx/configs/us7032evb1/shterm/shterm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/us7032evb1/shterm/shterm.c b/nuttx/configs/us7032evb1/shterm/shterm.c
index f9ff2994aa..361f134ffb 100644
--- a/nuttx/configs/us7032evb1/shterm/shterm.c
+++ b/nuttx/configs/us7032evb1/shterm/shterm.c
@@ -110,6 +110,7 @@ static void putconsole(char ch)
{
(void)putc(ch, g_logstream);
}
+
(void)putchar(ch);
}
@@ -139,6 +140,7 @@ static void printconsole(const char *fmt, ...)
{
(void)vfprintf(g_logstream, fmt, ap);
}
+
(void)vprintf(fmt, ap);
va_end(ap);
}
@@ -435,7 +437,7 @@ static void close_tty(void)
(void)close(g_fd);
}
- if (g_logstream >= 0)
+ if (g_logstream)
{
(void)fclose(g_logstream);
}
@@ -717,7 +719,7 @@ int main(int argc, char **argv, char **envp)
{
sendfile(g_fd, filename, 0);
}
- else if (ch1 == 'v' || ch1 == 'v')
+ else if (ch1 == 'v' || ch1 == 'V')
{
sendfile(g_fd, filename, 1);
}