Fix a warning found in build testing.
This commit is contained in:
parent
6de41b6cf3
commit
d0102bdd4c
1 changed files with 2 additions and 2 deletions
|
|
@ -174,11 +174,11 @@ ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count)
|
|||
|
||||
else if (nbytesread < 0)
|
||||
{
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
int errcode = _NX_GETERRNO(nbytesread);
|
||||
|
||||
/* EINTR is not an error (but will still stop the copy) */
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
if (errcode != EINTR || ntransferred == 0)
|
||||
#endif
|
||||
{
|
||||
|
|
@ -231,6 +231,7 @@ ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count)
|
|||
|
||||
else
|
||||
{
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
int errcode = _NX_GETERRNO(nbyteswritten);
|
||||
|
||||
/* Check for a read ERROR. EINTR is a special case. This
|
||||
|
|
@ -240,7 +241,6 @@ ssize_t sendfile(int outfd, int infd, off_t *offset, size_t count)
|
|||
* suppose just continue?
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_DISABLE_SIGNALS
|
||||
if (errcode != EINTR || ntransferred == 0)
|
||||
#endif
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue