forked from nuttx/nuttx-update
net/local: Missed at least one change from read() to nx_read().
This commit is contained in:
parent
181875f3ba
commit
6de41b6cf3
1 changed files with 8 additions and 8 deletions
|
@ -38,7 +38,6 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_LOCAL)
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
@ -48,8 +47,12 @@
|
|||
#include <assert.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/fs/fs.h>
|
||||
|
||||
#include "local/local.h"
|
||||
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_LOCAL)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
@ -85,16 +88,13 @@ int local_fifo_read(int fd, FAR uint8_t *buf, size_t *len)
|
|||
remaining = *len;
|
||||
while (remaining > 0)
|
||||
{
|
||||
nread = read(fd, buf, remaining);
|
||||
nread = nx_read(fd, buf, remaining);
|
||||
if (nread < 0)
|
||||
{
|
||||
int errcode = get_errno();
|
||||
DEBUGASSERT(errcode > 0);
|
||||
|
||||
if (errcode != EINTR)
|
||||
if (nread != -EINTR)
|
||||
{
|
||||
nerr("ERROR: Read failed: %d\n", errcode);
|
||||
ret = -errcode;
|
||||
ret = (int)nread;
|
||||
nerr("ERROR: nx_read() failed: %d\n", ret);
|
||||
goto errout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue