r22057 - gnucash/trunk/src/backend/xml - Fix a warning due to the wrong declaration for the return value of gzopen.
Mike Alexander
mta at code.gnucash.org
Mon Feb 20 17:14:33 EST 2012
Author: mta
Date: 2012-02-20 17:14:32 -0500 (Mon, 20 Feb 2012)
New Revision: 22057
Trac: http://svn.gnucash.org/trac/changeset/22057
Modified:
gnucash/trunk/src/backend/xml/io-gncxml-v2.c
Log:
Fix a warning due to the wrong declaration for the return value of gzopen.
The return value is off by a level of indirection, it should be a gzFile not
gzFile *.
Modified: gnucash/trunk/src/backend/xml/io-gncxml-v2.c
===================================================================
--- gnucash/trunk/src/backend/xml/io-gncxml-v2.c 2012-02-19 20:32:41 UTC (rev 22056)
+++ gnucash/trunk/src/backend/xml/io-gncxml-v2.c 2012-02-20 22:14:32 UTC (rev 22057)
@@ -1338,7 +1338,7 @@
gchar buffer[BUFLEN];
gssize bytes;
gint gzval;
- gzFile *file;
+ gzFile file;
gint success = 1;
#ifdef G_OS_WIN32
@@ -1636,7 +1636,7 @@
{
if (is_gzipped_file(name))
{
- gzFile *file = NULL;
+ gzFile file = NULL;
char first_chunk[256];
int num_read;
More information about the gnucash-changes
mailing list