read: Fix last commit.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 14:43:26 +0000 (16:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 14:43:26 +0000 (16:43 +0200)
* lib/read.c (read_nothrow): Change return type to 'ssize_t'.

ChangeLog
lib/read.c

index c57972e..c378e91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
        (rpl_dup2): Disable fcntl workaround on native Windows.
index 98b7801..1bae389 100644 (file)
 # 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
     {