From 87fe636d40e14ea3e88e6e745f74c7da0ae2cc35 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 24 Jan 2014 09:49:17 -0600 Subject: [PATCH] NSH cosmetic changes --- nshlib/nsh_console.c | 5 +++-- nshlib/nsh_console.h | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nshlib/nsh_console.c b/nshlib/nsh_console.c index de7537bd7..ba7dbe760 100644 --- a/nshlib/nsh_console.c +++ b/nshlib/nsh_console.c @@ -42,10 +42,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -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/nshlib/nsh_console.h b/nshlib/nsh_console.h index 73bab493b..c78362f94 100644 --- a/nshlib/nsh_console.h +++ b/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 ****************************************************************************/