Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/reent/readr.c')
-rw-r--r--newlib/libc/reent/readr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/reent/readr.c b/newlib/libc/reent/readr.c
index e3deca9a7..b05cbe2ab 100644
--- a/newlib/libc/reent/readr.c
+++ b/newlib/libc/reent/readr.c
@@ -28,12 +28,12 @@ INDEX
ANSI_SYNOPSIS
#include <reent.h>
- long _read_r(struct _reent *<[ptr]>,
- int <[fd]>, void *<[buf]>, size_t <[cnt]>);
+ _ssize_t _read_r(struct _reent *<[ptr]>,
+ int <[fd]>, void *<[buf]>, size_t <[cnt]>);
TRAD_SYNOPSIS
#include <reent.h>
- long _read_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>)
+ _ssize_t _read_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>)
struct _reent *<[ptr]>;
int <[fd]>;
char *<[buf]>;
@@ -45,17 +45,17 @@ DESCRIPTION
<<errno>>.
*/
-long
+_ssize_t
_read_r (ptr, fd, buf, cnt)
struct _reent *ptr;
int fd;
_PTR buf;
size_t cnt;
{
- long ret;
+ _ssize_t ret;
errno = 0;
- if ((ret = _read (fd, buf, cnt)) == -1 && errno != 0)
+ if ((ret = (_ssize_t)_read (fd, buf, cnt)) == -1 && errno != 0)
ptr->_errno = errno;
return ret;
}