mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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
This commit is contained in:
parent
a919d56e50
commit
bbf0f9ef17
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user