From 05f426cf8c26120a84647d00710e8417b8bad064 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 24 Sep 2011 16:43:26 +0200 Subject: [PATCH] read: Fix last commit. * lib/read.c (read_nothrow): Change return type to 'ssize_t'. --- ChangeLog | 5 +++++ lib/read.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c57972e7c..c378e911b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-09-24 Bruno Haible + read: Fix last commit. + * lib/read.c (read_nothrow): Change return type to 'ssize_t'. + +2011-09-24 Bruno Haible + dup2: Fix last commit. * lib/dup2.c: Restore comments. Treat Cygwin like Unix. (rpl_dup2): Disable fcntl workaround on native Windows. diff --git a/lib/read.c b/lib/read.c index 98b78012d..1bae3893d 100644 --- a/lib/read.c +++ b/lib/read.c @@ -34,10 +34,10 @@ # undef read # if HAVE_MSVC_INVALID_PARAMETER_HANDLER -static inline int +static inline ssize_t read_nothrow (int fd, void *buf, size_t count) { - int result; + ssize_t result; TRY_MSVC_INVAL { -- 2.11.0