More trailing whilespace removal

This commit is contained in:
Gregory Nutt 2014-04-13 16:24:28 -06:00
parent 7d961b6c93
commit b9cf7acb1a
285 changed files with 769 additions and 769 deletions

View file

@ -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[])

View file

@ -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 */

View file

@ -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.
*/

View file

@ -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

View file

@ -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)

View file

@ -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");

View file

@ -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