[Gnucash-changes] r14227 - gnucash/trunk/src/backend/file - Fix gcc4 complaint about unused return value of the write function.

David Hampton hampton at cvs.gnucash.org
Sun May 28 17:21:11 EDT 2006


Author: hampton
Date: 2006-05-28 17:21:11 -0400 (Sun, 28 May 2006)
New Revision: 14227
Trac: http://svn.gnucash.org/trac/changeset/14227

Modified:
   gnucash/trunk/src/backend/file/io-gncxml-v2.c
Log:
Fix gcc4 complaint about unused return value of the write function.


Modified: gnucash/trunk/src/backend/file/io-gncxml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/io-gncxml-v2.c	2006-05-28 20:10:09 UTC (rev 14226)
+++ gnucash/trunk/src/backend/file/io-gncxml-v2.c	2006-05-28 21:21:11 UTC (rev 14227)
@@ -1296,6 +1296,7 @@
     case 0: /* child */ {
       char buffer[BUFLEN];
       unsigned bytes;
+      ssize_t written;
       gzFile *file;
 
       file = gzopen(filename, perms);
@@ -1312,7 +1313,7 @@
       {
         close(filedes[0]);
         while ((bytes = gzread(file, buffer, BUFLEN)) > 0)
-          write(filedes[1], buffer, bytes);
+          written = write(filedes[1], buffer, bytes);
       }
       gzclose(file);
       _exit(0);



More information about the gnucash-changes mailing list