diff options
Diffstat (limited to 'newlib/libc/reent/writer.c')
-rw-r--r-- | newlib/libc/reent/writer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/reent/writer.c b/newlib/libc/reent/writer.c index ac10286e8..7ede74fcc 100644 --- a/newlib/libc/reent/writer.c +++ b/newlib/libc/reent/writer.c @@ -28,12 +28,12 @@ INDEX ANSI_SYNOPSIS #include <reent.h> - long _write_r(struct _reent *<[ptr]>, - int <[fd]>, const void *<[buf]>, size_t <[cnt]>); + _ssize_t _write_r(struct _reent *<[ptr]>, + int <[fd]>, const void *<[buf]>, size_t <[cnt]>); TRAD_SYNOPSIS #include <reent.h> - long _write_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>) + _ssize_t _write_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>) struct _reent *<[ptr]>; int <[fd]>; char *<[buf]>; @@ -45,17 +45,17 @@ DESCRIPTION <<errno>>. */ -long +_ssize_t _write_r (ptr, fd, buf, cnt) struct _reent *ptr; int fd; _CONST _PTR buf; size_t cnt; { - long ret; + _ssize_t ret; errno = 0; - if ((ret = _write (fd, buf, cnt)) == -1 && errno != 0) + if ((ret = (_ssize_t)_write (fd, buf, cnt)) == -1 && errno != 0) ptr->_errno = errno; return ret; } |