]> Savannah Git Hosting - gnulib.git/commitdiff
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 c57972e7cd5aa2430095e4cc87914c8c1601c419..c378e911be5b6ae9e14f6c177c3954d5a7c85d5f 100644 (file)
--- 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.
index 98b78012dcbbb07aae61f23e22a4542c2df66b9b..1bae3893d346bbfa76b392779e02b2abe66ad1b5 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
     {