From bbf0f9ef17720a849180ed2a7cd372f156ab724d Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Mon, 20 Feb 2012 22:14:32 +0000 Subject: [PATCH] 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 *. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22057 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/xml/io-gncxml-v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/xml/io-gncxml-v2.c b/src/backend/xml/io-gncxml-v2.c index 321aa335c7..6ddf073213 100644 --- a/src/backend/xml/io-gncxml-v2.c +++ b/src/backend/xml/io-gncxml-v2.c @@ -1338,7 +1338,7 @@ gz_thread_func(gz_thread_params_t *params) gchar buffer[BUFLEN]; gssize bytes; gint gzval; - gzFile *file; + gzFile file; gint success = 1; #ifdef G_OS_WIN32 @@ -1636,7 +1636,7 @@ gnc_is_xml_data_file_v2(const gchar *name, gboolean *with_encoding) { if (is_gzipped_file(name)) { - gzFile *file = NULL; + gzFile file = NULL; char first_chunk[256]; int num_read;