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 c57972e7cd..c378e911be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/read.c b/lib/read.c index 98b78012dc..1bae3893d3 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.39.5