changeset 15768:03d49ab0f9ae

read: Fix last commit. * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
author Bruno Haible <bruno@clisp.org>
date Sat, 24 Sep 2011 16:43:26 +0200
parents bace737d14e4
children 8b34c7785c75
files ChangeLog lib/read.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-24  Bruno Haible  <bruno@clisp.org>
+
+	read: Fix last commit.
+	* lib/read.c (read_nothrow): Change return type to 'ssize_t'.
+
 2011-09-24  Bruno Haible  <bruno@clisp.org>
 
 	dup2: Fix last commit.
--- 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
     {