Skip to content
Snippets Groups Projects
Commit 47d55c28 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Mostly cosmetic changes

parent 166d46a8
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@
* This function is called by the OS when one or more
* signal handling actions have been queued for execution.
* The architecture specific code must configure things so
* that the 'igdeliver' callback is executed on the thread
* that the 'sigdeliver' callback is executed on the thread
* specified by 'tcb' as soon as possible.
*
* This function may be called from interrupt handling logic.
......
......@@ -427,6 +427,7 @@ static ssize_t uart_write(FAR struct file *filep, FAR const char *buffer,
ret = uart_putxmitchar(dev, '\r', oktoblock);
if (ret < 0)
{
nwritten = ret;
break;
}
}
......
......@@ -54,8 +54,9 @@
static void rawoutstream_putc(FAR struct lib_outstream_s *this, int ch)
{
FAR struct lib_rawoutstream_s *rthis = (FAR struct lib_rawoutstream_s *)this;
int nwritten;
char buffer = ch;
int nwritten;
int errcode;
DEBUGASSERT(this && rthis->fd >= 0);
......@@ -77,9 +78,10 @@ static void rawoutstream_putc(FAR struct lib_outstream_s *this, int ch)
* return values from write().
*/
errcode = get_errno();
DEBUGASSERT(nwritten < 0);
}
while (get_errno() == EINTR);
while (errcode == EINTR);
}
/****************************************************************************
......
......@@ -51,7 +51,7 @@
#include "signal/signal.h"
/****************************************************************************
* Definitions
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
......@@ -184,4 +184,3 @@ void sig_deliver(FAR struct tcb_s *stcb)
stcb->pterrno = saved_errno;
sched_unlock();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment