diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-01-24 09:49:17 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-01-24 09:49:17 -0600 |
commit | 5b0bcd796648249d9dab13c5e111968f0dad015a (patch) | |
tree | ced49132c3116d63f407ff4407080a93989d9c08 | |
parent | 0f4004c9a9ecf17828a5c4db18e522da50700cdc (diff) | |
download | px4-nuttx-5b0bcd796648249d9dab13c5e111968f0dad015a.tar.gz px4-nuttx-5b0bcd796648249d9dab13c5e111968f0dad015a.tar.bz2 px4-nuttx-5b0bcd796648249d9dab13c5e111968f0dad015a.zip |
NSH cosmetic changes
-rw-r--r-- | apps/nshlib/nsh_console.c | 5 | ||||
-rw-r--r-- | apps/nshlib/nsh_console.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/apps/nshlib/nsh_console.c b/apps/nshlib/nsh_console.c index de7537bd7..ba7dbe760 100644 --- a/apps/nshlib/nsh_console.c +++ b/apps/nshlib/nsh_console.c @@ -42,10 +42,10 @@ #include <stdint.h> #include <stdio.h> #include <stdlib.h> +#include <stdarg.h> #include <unistd.h> #include <fcntl.h> #include <string.h> -#include <stdarg.h> #include <assert.h> #include <errno.h> #include <debug.h> @@ -213,7 +213,8 @@ static ssize_t nsh_consolewrite(FAR struct nsh_vtbl_s *vtbl, FAR const void *buf * ****************************************************************************/ -static int nsh_consoleoutput(FAR struct nsh_vtbl_s *vtbl, const char *fmt, ...) +static int nsh_consoleoutput(FAR struct nsh_vtbl_s *vtbl, + FAR const char *fmt, ...) { #if CONFIG_NFILE_DESCRIPTORS > 0 FAR struct console_stdio_s *pstate = (FAR struct console_stdio_s *)vtbl; diff --git a/apps/nshlib/nsh_console.h b/apps/nshlib/nsh_console.h index 73bab493b..c78362f94 100644 --- a/apps/nshlib/nsh_console.h +++ b/apps/nshlib/nsh_console.h @@ -107,7 +107,7 @@ struct nsh_vtbl_s void (*release)(FAR struct nsh_vtbl_s *vtbl); #endif ssize_t (*write)(FAR struct nsh_vtbl_s *vtbl, FAR const void *buffer, size_t nbytes); - int (*output)(FAR struct nsh_vtbl_s *vtbl, const char *fmt, ...); + int (*output)(FAR struct nsh_vtbl_s *vtbl, FAR const char *fmt, ...); FAR char *(*linebuffer)(FAR struct nsh_vtbl_s *vtbl); #if CONFIG_NFILE_DESCRIPTORS > 0 void (*redirect)(FAR struct nsh_vtbl_s *vtbl, int fd, FAR uint8_t *save); @@ -148,8 +148,6 @@ struct console_stdio_s char cn_line[CONFIG_NSH_LINELEN]; }; - - /**************************************************************************** * Public Data ****************************************************************************/ |