diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 16:24:28 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-13 16:24:28 -0600 |
commit | 43ec94a665e13552402ff4f102e0f65f6792cf29 (patch) | |
tree | 05da26d1bb5e364c1a388afd54630d5ae3ca4aa7 /apps/nshlib | |
parent | 70b6bb22af51defd713adfd452309f32f0e523aa (diff) | |
download | px4-nuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.tar.gz px4-nuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.tar.bz2 px4-nuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.zip |
More trailing whilespace removal
Diffstat (limited to 'apps/nshlib')
-rw-r--r-- | apps/nshlib/nsh_consolemain.c | 2 | ||||
-rw-r--r-- | apps/nshlib/nsh_ddcmd.c | 4 | ||||
-rw-r--r-- | apps/nshlib/nsh_fileapps.c | 4 | ||||
-rw-r--r-- | apps/nshlib/nsh_proccmds.c | 16 | ||||
-rw-r--r-- | apps/nshlib/nsh_telnetd.c | 4 | ||||
-rw-r--r-- | apps/nshlib/nsh_test.c | 2 | ||||
-rw-r--r-- | apps/nshlib/nsh_usbdev.c | 6 |
7 files changed, 19 insertions, 19 deletions
diff --git a/apps/nshlib/nsh_consolemain.c b/apps/nshlib/nsh_consolemain.c index 27e9d6db9..42353d3f4 100644 --- a/apps/nshlib/nsh_consolemain.c +++ b/apps/nshlib/nsh_consolemain.c @@ -95,7 +95,7 @@ * This function does not normally return. exit() is usually called to * terminate the NSH session. This function will return in the event of * an error. In that case, a nonzero value is returned (EXIT_FAILURE=1). - * + * ****************************************************************************/ int nsh_consolemain(int argc, char *argv[]) diff --git a/apps/nshlib/nsh_ddcmd.c b/apps/nshlib/nsh_ddcmd.c index ce6b47a47..4ab80bef1 100644 --- a/apps/nshlib/nsh_ddcmd.c +++ b/apps/nshlib/nsh_ddcmd.c @@ -113,7 +113,7 @@ struct dd_s int fd; /* File descriptor of the character device */ } inf; #else - int infd; /* File descriptor of the input device */ + int infd; /* File descriptor of the input device */ #endif #ifndef CONFIG_DISABLE_MOUNTPOINT @@ -123,7 +123,7 @@ struct dd_s int fd; /* File descriptor of the character device */ } outf; #else - int outfd; /* File descriptor of the output device */ + int outfd; /* File descriptor of the output device */ #endif uint32_t nsectors; /* Number of sectors to transfer */ diff --git a/apps/nshlib/nsh_fileapps.c b/apps/nshlib/nsh_fileapps.c index 9ff230f1a..6e35a97d2 100644 --- a/apps/nshlib/nsh_fileapps.c +++ b/apps/nshlib/nsh_fileapps.c @@ -168,7 +168,7 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, { /* The application was successfully started with pre-emption disabled. * In the simplest cases, the application will not have run because the - * the scheduler is locked. But in the case where I/O was redirected, a + * the scheduler is locked. But in the case where I/O was redirected, a * proxy task ran and broke our lock. As result, the application may * have aso ran if its priority was higher than than the priority of * this thread. @@ -232,7 +232,7 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, else { /* We can't return the exact status (nsh has nowhere to put it) - * so just pass back zero/nonzero in a fashion that doesn't look + * so just pass back zero/nonzero in a fashion that doesn't look * like an error. */ diff --git a/apps/nshlib/nsh_proccmds.c b/apps/nshlib/nsh_proccmds.c index 35010a8ac..399609688 100644 --- a/apps/nshlib/nsh_proccmds.c +++ b/apps/nshlib/nsh_proccmds.c @@ -86,15 +86,15 @@ static const char *g_statenames[] = { "INVALID ", "PENDING ", - "READY ", - "RUNNING ", - "INACTIVE", - "WAITSEM ", + "READY ", + "RUNNING ", + "INACTIVE", + "WAITSEM ", #ifndef CONFIG_DISABLE_MQUEUE - "WAITSIG ", + "WAITSIG ", #endif #ifndef CONFIG_DISABLE_MQUEUE - "MQNEMPTY", + "MQNEMPTY", "MQNFULL " #endif }; @@ -182,7 +182,7 @@ static int readfile(FAR const char *filename, FAR char *buffer, size_t buflen) else { /* Successful read. Make sure that the buffer is null terminated */ - + DEBUGASSERT(nread <= remaining); ntotal += nread; buffer[ntotal] = '\0'; @@ -200,7 +200,7 @@ static int readfile(FAR const char *filename, FAR char *buffer, size_t buflen) /* Close the file and return. */ close(fd); - return ret; + return ret; } #endif diff --git a/apps/nshlib/nsh_telnetd.c b/apps/nshlib/nsh_telnetd.c index c77e256a4..61a196601 100644 --- a/apps/nshlib/nsh_telnetd.c +++ b/apps/nshlib/nsh_telnetd.c @@ -136,7 +136,7 @@ int nsh_telnetlogin(struct console_stdio_s *pstate) } /* Ask for the login password */ - + fputs(g_passwordprompt, pstate->cn_outstream); fflush(pstate->cn_outstream); nsh_telnetecho(pstate, TELNET_NOTUSE_ECHO); @@ -277,7 +277,7 @@ int nsh_telnetmain(int argc, char *argv[]) * Returned Values: * The task ID of the Telnet daemon was successfully started. A negated * errno value will be returned on failure. - * + * ****************************************************************************/ int nsh_telnetstart(void) diff --git a/apps/nshlib/nsh_test.c b/apps/nshlib/nsh_test.c index 6e1b65e5f..f76da5417 100644 --- a/apps/nshlib/nsh_test.c +++ b/apps/nshlib/nsh_test.c @@ -398,7 +398,7 @@ static int expression(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) goto errout_syntax; } } - return value; + return value; errout_syntax: nsh_output(vtbl, g_nshsyntax, "test"); diff --git a/apps/nshlib/nsh_usbdev.c b/apps/nshlib/nsh_usbdev.c index ed6b928c2..ec80df481 100644 --- a/apps/nshlib/nsh_usbdev.c +++ b/apps/nshlib/nsh_usbdev.c @@ -291,7 +291,7 @@ static int nsh_waitusbready(void) * single an NSH instance that operates on stdin and stdout. This * function does not return. * - * This function handles generic /dev/console character devices, or + * This function handles generic /dev/console character devices, or * special USB console devices. The USB console requires some special * operations to handle the cases where the session is lost when the * USB device is unplugged and restarted when the USB device is plugged @@ -304,7 +304,7 @@ static int nsh_waitusbready(void) * Returned Values: * This function does not return nor does it ever exit (unless the user * executes the NSH exit command). - * + * ****************************************************************************/ #ifdef HAVE_USB_CONSOLE @@ -384,7 +384,7 @@ int nsh_consolemain(int argc, char *argv[]) * * Returned Values: * None - * + * ****************************************************************************/ #ifdef CONFIG_NSH_USBDEV_TRACE |